diff --git a/Pipfile b/Pipfile index 980c72b..11a64af 100644 --- a/Pipfile +++ b/Pipfile @@ -11,6 +11,7 @@ django-silk = "*" django-recaptcha2 = "*" Django = "*" gunicorn = "*" +flake8 = "*" [requires] python_version = "3.7" diff --git a/Pipfile.lock b/Pipfile.lock index ebaa771..8d30250 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "484cc2c0943d2a720e2e0d2c4a722378da9e7a4554695c84e6e67a50f4fb8914" + "sha256": "0b9fcb0ea9277c2f815fc7163a8bce830eb5786509560305a36ce938bb4842aa" }, "pipfile-spec": 6, "requires": { @@ -60,6 +60,21 @@ "index": "pypi", "version": "==3.0.1" }, + "entrypoints": { + "hashes": [ + "sha256:589f874b313739ad35be6e0cd7efde2a4e9b6fea91edcc34e58ecbb8dbe56d19", + "sha256:c70dd71abe5a8c85e55e12c19bd91ccfeec11a6e99044204511f9ed547d48451" + ], + "version": "==0.3" + }, + "flake8": { + "hashes": [ + "sha256:c3ba1e130c813191db95c431a18cb4d20a468e98af7a77e2181b68574481ad36", + "sha256:fd9ddf503110bf3d8b1d270e8c673aab29ccb3dd6abf29bae1f54e5116ab4a91" + ], + "index": "pypi", + "version": "==3.7.5" + }, "gprof2dot": { "hashes": [ "sha256:48c1e168c28b8a8eb23bf30fda78fe2ef218269a41505341ec27c27083e47cf4" @@ -121,6 +136,13 @@ ], "version": "==1.1.0" }, + "mccabe": { + "hashes": [ + "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42", + "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f" + ], + "version": "==0.6.1" + }, "pycodestyle": { "hashes": [ "sha256:95a2219d12372f05704562a14ec30bc76b05a5b297b21a5dfe3f6fac3491ae56", @@ -128,6 +150,13 @@ ], "version": "==2.5.0" }, + "pyflakes": { + "hashes": [ + "sha256:5e8c00e30c464c99e0b501dc160b13a14af7f27d4dffb529c556e30a159e231d", + "sha256:f277f9ca3e55de669fba45b7393a1449009cff5a37d1af10ebb76c52765269cd" + ], + "version": "==2.1.0" + }, "pygments": { "hashes": [ "sha256:5ffada19f6203563680669ee7f53b64dabbeb100eb51b61996085e99c03b284a", diff --git a/comic/tests.py b/comic/tests.py index 2a48f7b..7c2dc1e 100644 --- a/comic/tests.py +++ b/comic/tests.py @@ -318,7 +318,7 @@ class ComicBookTests(TestCase): def test_account_page(self): c = Client() user = User.objects.get(username='test') - + self.assertEqual(user.username, 'test') response = c.get('/comic/account/') self.assertEqual(response.status_code, 302) @@ -326,5 +326,3 @@ class ComicBookTests(TestCase): response = c.get('/comic/account/') self.assertEqual(response.status_code, 200) - - response = c.post('/comic/account/')