mirror of
https://github.com/onionshare/onionshare.git
synced 2025-03-15 18:36:31 -04:00
Merge pull request #1060 from cclauss/patch-1
Use ==/!= to compare str, bytes, and int literals
This commit is contained in:
commit
1c60c51c5c
@ -71,7 +71,7 @@ def web_obj(common_obj, mode, num_files=0):
|
||||
class TestWeb:
|
||||
def test_share_mode(self, common_obj):
|
||||
web = web_obj(common_obj, "share", 3)
|
||||
assert web.mode is "share"
|
||||
assert web.mode == "share"
|
||||
with web.app.test_client() as c:
|
||||
# Load / without auth
|
||||
res = c.get("/")
|
||||
@ -127,7 +127,7 @@ class TestWeb:
|
||||
|
||||
def test_receive_mode(self, common_obj):
|
||||
web = web_obj(common_obj, "receive")
|
||||
assert web.mode is "receive"
|
||||
assert web.mode == "receive"
|
||||
|
||||
with web.app.test_client() as c:
|
||||
# Load / without auth
|
||||
|
Loading…
x
Reference in New Issue
Block a user