Merge pull request #1060 from cclauss/patch-1

Use ==/!= to compare str, bytes, and int literals
This commit is contained in:
Micah Lee 2019-10-20 12:50:26 -04:00 committed by GitHub
commit 4dba1b0a31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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