update for devops

This commit is contained in:
2019-02-15 16:39:47 +00:00
parent 4bf933d8f5
commit 11a7401b7d
3 changed files with 32 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ django-silk = "*"
django-recaptcha2 = "*" django-recaptcha2 = "*"
Django = "*" Django = "*"
gunicorn = "*" gunicorn = "*"
flake8 = "*"
[requires] [requires]
python_version = "3.7" python_version = "3.7"

31
Pipfile.lock generated
View File

@@ -1,7 +1,7 @@
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "484cc2c0943d2a720e2e0d2c4a722378da9e7a4554695c84e6e67a50f4fb8914" "sha256": "0b9fcb0ea9277c2f815fc7163a8bce830eb5786509560305a36ce938bb4842aa"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
@@ -60,6 +60,21 @@
"index": "pypi", "index": "pypi",
"version": "==3.0.1" "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": { "gprof2dot": {
"hashes": [ "hashes": [
"sha256:48c1e168c28b8a8eb23bf30fda78fe2ef218269a41505341ec27c27083e47cf4" "sha256:48c1e168c28b8a8eb23bf30fda78fe2ef218269a41505341ec27c27083e47cf4"
@@ -121,6 +136,13 @@
], ],
"version": "==1.1.0" "version": "==1.1.0"
}, },
"mccabe": {
"hashes": [
"sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42",
"sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"
],
"version": "==0.6.1"
},
"pycodestyle": { "pycodestyle": {
"hashes": [ "hashes": [
"sha256:95a2219d12372f05704562a14ec30bc76b05a5b297b21a5dfe3f6fac3491ae56", "sha256:95a2219d12372f05704562a14ec30bc76b05a5b297b21a5dfe3f6fac3491ae56",
@@ -128,6 +150,13 @@
], ],
"version": "==2.5.0" "version": "==2.5.0"
}, },
"pyflakes": {
"hashes": [
"sha256:5e8c00e30c464c99e0b501dc160b13a14af7f27d4dffb529c556e30a159e231d",
"sha256:f277f9ca3e55de669fba45b7393a1449009cff5a37d1af10ebb76c52765269cd"
],
"version": "==2.1.0"
},
"pygments": { "pygments": {
"hashes": [ "hashes": [
"sha256:5ffada19f6203563680669ee7f53b64dabbeb100eb51b61996085e99c03b284a", "sha256:5ffada19f6203563680669ee7f53b64dabbeb100eb51b61996085e99c03b284a",

View File

@@ -318,7 +318,7 @@ class ComicBookTests(TestCase):
def test_account_page(self): def test_account_page(self):
c = Client() c = Client()
user = User.objects.get(username='test') user = User.objects.get(username='test')
self.assertEqual(user.username, 'test')
response = c.get('/comic/account/') response = c.get('/comic/account/')
self.assertEqual(response.status_code, 302) self.assertEqual(response.status_code, 302)
@@ -326,5 +326,3 @@ class ComicBookTests(TestCase):
response = c.get('/comic/account/') response = c.get('/comic/account/')
self.assertEqual(response.status_code, 200) self.assertEqual(response.status_code, 200)
response = c.post('/comic/account/')