aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_piwigo.py
diff options
context:
space:
mode:
authorBen Sturmfels <ben@sturm.com.au>2021-03-05 23:12:19 +1100
committerBen Sturmfels <ben@sturm.com.au>2021-03-05 23:12:19 +1100
commitdec47c7102cf0aa3a4debf002928db8e460c0d71 (patch)
tree47631fc15c7af172aa699506adf3d76d3a71976c /mediagoblin/tests/test_piwigo.py
parent5f3a782fef4855e10b7259624a14d8afb0f7be93 (diff)
downloadmediagoblin-dec47c7102cf0aa3a4debf002928db8e460c0d71.tar.lz
mediagoblin-dec47c7102cf0aa3a4debf002928db8e460c0d71.tar.xz
mediagoblin-dec47c7102cf0aa3a4debf002928db8e460c0d71.zip
Apply `pyupgrade --py3-plus` to remove Python 2 compatibility code.
Diffstat (limited to 'mediagoblin/tests/test_piwigo.py')
-rw-r--r--mediagoblin/tests/test_piwigo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/mediagoblin/tests/test_piwigo.py b/mediagoblin/tests/test_piwigo.py
index 33aea580..c530d457 100644
--- a/mediagoblin/tests/test_piwigo.py
+++ b/mediagoblin/tests/test_piwigo.py
@@ -21,14 +21,14 @@ from .tools import fixture_add_user
XML_PREFIX = "<?xml version='1.0' encoding='utf-8'?>\n"
-class Test_PWG(object):
+class Test_PWG:
@pytest.fixture(autouse=True)
def setup(self, test_app):
self.test_app = test_app
fixture_add_user()
- self.username = u"chris"
+ self.username = "chris"
self.password = "toast"
def do_post(self, method, params):
@@ -43,7 +43,7 @@ class Test_PWG(object):
def test_session(self):
resp = self.do_post("pwg.session.login",
- {"username": u"nouser", "password": "wrong"})
+ {"username": "nouser", "password": "wrong"})
assert resp.body == (XML_PREFIX + '<rsp stat="fail"><err code="999" msg="Invalid username/password"/></rsp>').encode('ascii')
resp = self.do_post("pwg.session.login",