8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0e99e3 commit 5bfca32Copy full SHA for 5bfca32
docs/index.md
@@ -59,7 +59,7 @@ And a framework of your choice will not even notice the change.
59
60
```pycon
61
62
->>> from .views import BuySubscriptionView
+>>> from app.views import BuySubscriptionView
63
64
>>> urlpatterns = [
65
... path("buy_subscription/<int:id>/", BuySubscriptionView.as_view()),
mddoctest.py
@@ -1,6 +1,14 @@
1
+import builtins
2
import sys
3
from doctest import testfile
4
from glob import glob
5
+from unittest import mock
6
+
7
8
+def _setup():
9
+ sys.modules["app.views"] = mock.Mock()
10
+ builtins.path = mock.Mock()
11
+ builtins.workflows = mock.Mock()
12
13
14
def _main():
@@ -13,4 +21,5 @@ def _main():
21
22
15
23
if __name__ == "__main__":
24
+ _setup()
16
25
_main()
0 commit comments