mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 10:42:58 -03:00
Merge pull request #1060 from cclauss/patch-1
Use ==/!= to compare str, bytes, and int literals
This commit is contained in:
commit
4dba1b0a31
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue