Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3736e9f4
authored
Aug 04, 2022
by
Fábián János
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace assertItemsEqual with assertCountEqual (python 3.3)
parent
37460267
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
circle/dashboard/tests/test_views.py
+2
-2
No files found.
circle/dashboard/tests/test_views.py
View file @
3736e9f4
...
@@ -1900,7 +1900,7 @@ class TwoFactorTest(LoginMixin, TestCase):
...
@@ -1900,7 +1900,7 @@ class TwoFactorTest(LoginMixin, TestCase):
def
test_straight_to_2fa_as_anonymous
(
self
):
def
test_straight_to_2fa_as_anonymous
(
self
):
c
=
Client
()
c
=
Client
()
response
=
c
.
get
(
"/two-factor-login/"
,
follow
=
True
)
response
=
c
.
get
(
"/two-factor-login/"
,
follow
=
True
)
self
.
assert
Items
Equal
(
self
.
assert
Count
Equal
(
response
.
redirect_chain
,
response
.
redirect_chain
,
[(
'/'
,
302
),
[(
'/'
,
302
),
(
'/dashboard/'
,
302
),
(
'/dashboard/'
,
302
),
...
@@ -1911,7 +1911,7 @@ class TwoFactorTest(LoginMixin, TestCase):
...
@@ -1911,7 +1911,7 @@ class TwoFactorTest(LoginMixin, TestCase):
c
=
Client
()
c
=
Client
()
self
.
login
(
c
,
'user2'
)
self
.
login
(
c
,
'user2'
)
response
=
c
.
get
(
"/two-factor-login/"
,
follow
=
True
)
response
=
c
.
get
(
"/two-factor-login/"
,
follow
=
True
)
self
.
assert
Items
Equal
(
self
.
assert
Count
Equal
(
response
.
redirect_chain
,
response
.
redirect_chain
,
[(
'/'
,
302
),
[(
'/'
,
302
),
(
'/dashboard/'
,
302
)]
(
'/dashboard/'
,
302
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment