Skip to content

Commit 21d880f

Browse files
committed
Update test dependencies for compatibility with Python 3.10
1 parent 4fd01e4 commit 21d880f

File tree

2 files changed

+35
-162
lines changed

2 files changed

+35
-162
lines changed

setup.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ def run(self):
7070
"test": [
7171
"psycopg2>=2.8.4,<3.0.0",
7272
"dj-database-url==0.5.0",
73-
"pytest==5.3.2",
74-
"pytest-benchmark==3.2.2",
75-
"pytest-django==3.7.0",
76-
"pytest-cov==2.8.1",
77-
"tox==3.14.0",
78-
"freezegun==0.3.12",
79-
"coveralls==1.10.0",
80-
"snapshottest==0.5",
73+
"pytest==6.2.5",
74+
"pytest-benchmark==3.4.1",
75+
"pytest-django==4.4.0",
76+
"pytest-cov==3.0.0",
77+
"tox==3.24.4",
78+
"freezegun==1.1.0",
79+
"coveralls==3.3.0",
80+
"snapshottest==0.6.0",
8181
],
8282
"analysis": [
8383
"black==19.3b0",

tests/snapshots/snap_test_management_command_partition.py

Lines changed: 27 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -2,160 +2,33 @@
22
# snapshottest: v1 - https://goo.gl/zC4yUc
33
from __future__ import unicode_literals
44

5-
from snapshottest import Snapshot
5+
from snapshottest import GenericRepr, Snapshot
6+
67

78
snapshots = Snapshot()
89

9-
snapshots["test_management_command_partition_dry_run[-d] 1"] = (
10-
"""test:
11-
- tobedeleted
12-
+ tobecreated
13-
14-
1 partitions will be deleted
15-
1 partitions will be created
16-
""",
17-
"",
18-
)
19-
20-
snapshots["test_management_command_partition_dry_run[--dry] 1"] = (
21-
"""test:
22-
- tobedeleted
23-
+ tobecreated
24-
25-
1 partitions will be deleted
26-
1 partitions will be created
27-
""",
28-
"",
29-
)
30-
31-
snapshots["test_management_command_partition_auto_confirm[-y] 1"] = (
32-
"""test:
33-
- tobedeleted
34-
+ tobecreated
35-
36-
1 partitions will be deleted
37-
1 partitions will be created
38-
Operations applied.
39-
""",
40-
"",
41-
)
42-
43-
snapshots["test_management_command_partition_auto_confirm[--yes] 1"] = (
44-
"""test:
45-
- tobedeleted
46-
+ tobecreated
47-
48-
1 partitions will be deleted
49-
1 partitions will be created
50-
Operations applied.
51-
""",
52-
"",
53-
)
54-
55-
snapshots["test_management_command_partition_confirm_yes[y] 1"] = (
56-
"""test:
57-
- tobedeleted
58-
+ tobecreated
59-
60-
1 partitions will be deleted
61-
1 partitions will be created
62-
Do you want to proceed? (y/N) Operations applied.
63-
""",
64-
"",
65-
)
66-
67-
snapshots["test_management_command_partition_confirm_yes[Y] 1"] = (
68-
"""test:
69-
- tobedeleted
70-
+ tobecreated
71-
72-
1 partitions will be deleted
73-
1 partitions will be created
74-
Do you want to proceed? (y/N) Operations applied.
75-
""",
76-
"",
77-
)
78-
79-
snapshots["test_management_command_partition_confirm_yes[yes] 1"] = (
80-
"""test:
81-
- tobedeleted
82-
+ tobecreated
83-
84-
1 partitions will be deleted
85-
1 partitions will be created
86-
Do you want to proceed? (y/N) Operations applied.
87-
""",
88-
"",
89-
)
90-
91-
snapshots["test_management_command_partition_confirm_yes[YES] 1"] = (
92-
"""test:
93-
- tobedeleted
94-
+ tobecreated
95-
96-
1 partitions will be deleted
97-
1 partitions will be created
98-
Do you want to proceed? (y/N) Operations applied.
99-
""",
100-
"",
101-
)
102-
103-
snapshots["test_management_command_partition_confirm_no[n] 1"] = (
104-
"""test:
105-
- tobedeleted
106-
+ tobecreated
107-
108-
1 partitions will be deleted
109-
1 partitions will be created
110-
Do you want to proceed? (y/N) Operation aborted.
111-
""",
112-
"",
113-
)
114-
115-
snapshots["test_management_command_partition_confirm_no[N] 1"] = (
116-
"""test:
117-
- tobedeleted
118-
+ tobecreated
119-
120-
1 partitions will be deleted
121-
1 partitions will be created
122-
Do you want to proceed? (y/N) Operation aborted.
123-
""",
124-
"",
125-
)
126-
127-
snapshots["test_management_command_partition_confirm_no[no] 1"] = (
128-
"""test:
129-
- tobedeleted
130-
+ tobecreated
131-
132-
1 partitions will be deleted
133-
1 partitions will be created
134-
Do you want to proceed? (y/N) Operation aborted.
135-
""",
136-
"",
137-
)
138-
139-
snapshots["test_management_command_partition_confirm_no[No] 1"] = (
140-
"""test:
141-
- tobedeleted
142-
+ tobecreated
143-
144-
1 partitions will be deleted
145-
1 partitions will be created
146-
Do you want to proceed? (y/N) Operation aborted.
147-
""",
148-
"",
149-
)
150-
151-
snapshots["test_management_command_partition_confirm_no[NO] 1"] = (
152-
"""test:
153-
- tobedeleted
154-
+ tobecreated
155-
156-
1 partitions will be deleted
157-
1 partitions will be created
158-
Do you want to proceed? (y/N) Operation aborted.
159-
""",
160-
"",
161-
)
10+
snapshots['test_management_command_partition_auto_confirm[--yes] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nOperations applied.\\n', err='')")
11+
12+
snapshots['test_management_command_partition_auto_confirm[-y] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nOperations applied.\\n', err='')")
13+
14+
snapshots['test_management_command_partition_confirm_no[NO] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operation aborted.\\n', err='')")
15+
16+
snapshots['test_management_command_partition_confirm_no[N] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operation aborted.\\n', err='')")
17+
18+
snapshots['test_management_command_partition_confirm_no[No] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operation aborted.\\n', err='')")
19+
20+
snapshots['test_management_command_partition_confirm_no[n] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operation aborted.\\n', err='')")
21+
22+
snapshots['test_management_command_partition_confirm_no[no] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operation aborted.\\n', err='')")
23+
24+
snapshots['test_management_command_partition_confirm_yes[YES] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operations applied.\\n', err='')")
25+
26+
snapshots['test_management_command_partition_confirm_yes[Y] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operations applied.\\n', err='')")
27+
28+
snapshots['test_management_command_partition_confirm_yes[y] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operations applied.\\n', err='')")
29+
30+
snapshots['test_management_command_partition_confirm_yes[yes] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\nDo you want to proceed? (y/N) Operations applied.\\n', err='')")
31+
32+
snapshots['test_management_command_partition_dry_run[--dry] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\n', err='')")
33+
34+
snapshots['test_management_command_partition_dry_run[-d] 1'] = GenericRepr("CaptureResult(out='test:\\n - tobedeleted\\n + tobecreated\\n\\n1 partitions will be deleted\\n1 partitions will be created\\n', err='')")

0 commit comments

Comments
 (0)