Browse Source

Install pytest for designing and running automated test suites

tags/v1.9.2
Danielle McLean 1 year ago
parent
commit
dffa2d9d50
Signed by: Danielle McLean <dani@00dani.me> GPG Key ID: 5A5D2D1AFF12EEC5
4 changed files with 72 additions and 21 deletions
  1. 1
    0
      .gitignore
  2. 1
    0
      Pipfile
  3. 67
    21
      Pipfile.lock
  4. 3
    0
      pytest.ini

+ 1
- 0
.gitignore View File

@@ -15,5 +15,6 @@ media
15 15
 # <django-project-name>/staticfiles/
16 16
 
17 17
 # End of https://www.gitignore.io/api/django
18
+/.pytest_cache
18 19
 /static
19 20
 node_modules

+ 1
- 0
Pipfile View File

@@ -45,6 +45,7 @@ cachecontrol = "*"
45 45
 hiredis = "*"
46 46
 "mf2util" = "*"
47 47
 django-cors-headers = "*"
48
+pytest-django = "*"
48 49
 
49 50
 
50 51
 [dev-packages]

+ 67
- 21
Pipfile.lock View File

@@ -1,7 +1,7 @@
1 1
 {
2 2
     "_meta": {
3 3
         "hash": {
4
-            "sha256": "411aa6facd5df2aebd01341e6023d52a8ec40ed0427dd550dc443562ba571ffc"
4
+            "sha256": "192eb5641b85f4522cc08caa73a7b588eb4d67566b2c62bc506c31a5ef292c47"
5 5
         },
6 6
         "host-environment-markers": {
7 7
             "implementation_name": "cpython",
@@ -9,9 +9,9 @@
9 9
             "os_name": "posix",
10 10
             "platform_machine": "x86_64",
11 11
             "platform_python_implementation": "CPython",
12
-            "platform_release": "17.4.0",
12
+            "platform_release": "17.5.0",
13 13
             "platform_system": "Darwin",
14
-            "platform_version": "Darwin Kernel Version 17.4.0: Tue Dec 19 11:20:50 PST 2017; root:xnu-4570.41.2~2/RELEASE_X86_64",
14
+            "platform_version": "Darwin Kernel Version 17.5.0: Fri Jan 12 23:22:48 PST 2018; root:xnu-4570.50.243~12/RELEASE_X86_64",
15 15
             "python_full_version": "3.6.4",
16 16
             "python_version": "3.6",
17 17
             "sys_platform": "darwin"
@@ -35,6 +35,13 @@
35 35
             ],
36 36
             "version": "==0.3.0"
37 37
         },
38
+        "attrs": {
39
+            "hashes": [
40
+                "sha256:a17a9573a6f475c99b551c0e0a812707ddda1ec9653bed04c13841404ed6f450",
41
+                "sha256:1c7960ccfd6a005cd9f7ba884e6316b5e430a3f1a6c37c5f87d8b43f83b54ec9"
42
+            ],
43
+            "version": "==17.4.0"
44
+        },
38 45
         "beautifulsoup4": {
39 46
             "hashes": [
40 47
                 "sha256:7015e76bf32f1f574636c4288399a6de66ce08fb7b2457f628a8d70c0fbabb11",
@@ -52,9 +59,9 @@
52 59
         },
53 60
         "cachecontrol": {
54 61
             "hashes": [
55
-                "sha256:a9fc50e216c7c101f4ec4312f012dea501c2859cb256c7a68186a172ab71f632"
62
+                "sha256:a7d21ba4e3633d95ac9fed5be205ee6d1da36bdc4b8914eb7a57ff50b7e5628c"
56 63
             ],
57
-            "version": "==0.12.3"
64
+            "version": "==0.12.4"
58 65
         },
59 66
         "certifi": {
60 67
             "hashes": [
@@ -79,10 +86,10 @@
79 86
         },
80 87
         "django": {
81 88
             "hashes": [
82
-                "sha256:90952c46d2b7b042db00e98b05f5dd97a5775822948d46fd82ff074d8ac75853",
83
-                "sha256:353d129f22e1d24980d6061666f435781141c2dfd852f14ffc8a670175821034"
89
+                "sha256:ac4c797a328a5ac8777ad61bcd00da279773455cc78b4058de2a9842a0eb6ee8",
90
+                "sha256:22383567385a9c406d8a5ce080a2694c82c6b733e157922197e8b393bb3aacd9"
84 91
             ],
85
-            "version": "==1.11.9"
92
+            "version": "==1.11.10"
86 93
         },
87 94
         "django-activeurl": {
88 95
             "hashes": [
@@ -363,6 +370,12 @@
363 370
             ],
364 371
             "version": "==5.0.0"
365 372
         },
373
+        "pluggy": {
374
+            "hashes": [
375
+                "sha256:7f8ae7f5bdf75671a718d2daf0a64b7885f74510bcd98b1a0bb420eb9a9d0cff"
376
+            ],
377
+            "version": "==0.6.0"
378
+        },
366 379
         "psycopg2": {
367 380
             "hashes": [
368 381
                 "sha256:594aa9a095de16614f703d759e10c018bdffeafce2921b8e80a0e8a0ebbc12e5",
@@ -399,21 +412,54 @@
399 412
             ],
400 413
             "version": "==2.7.3.2"
401 414
         },
415
+        "py": {
416
+            "hashes": [
417
+                "sha256:8cca5c229d225f8c1e3085be4fcf306090b00850fefad892f9d96c7b6e2f310f",
418
+                "sha256:ca18943e28235417756316bfada6cd96b23ce60dd532642690dcfdaba988a76d"
419
+            ],
420
+            "version": "==1.5.2"
421
+        },
402 422
         "pycryptodome": {
403 423
             "hashes": [
404
-                "sha256:2174fa555916b5ae8bcc7747ecfe2a4d5943b42c9dcf4878e269baaae264e85d",
405
-                "sha256:9fc97cd0f6eeec59af736b3df81e5811d836fa646b89a4325672dcaf997250b3",
406
-                "sha256:8440a35ccd52f0eab0f4ece284bd13a587d86d79bd404d8914f81eda74a66de1",
407
-                "sha256:6f64d8b63034fd9289bae4cb48aa8f7049f6b8db702c7af50cb3718821d28147",
408
-                "sha256:f0196124f83221f9c5e06a68e247019466395d35d92d4ce4482c835f75302851",
409
-                "sha256:8851b1e1d85e4fb981048c8a8a8431839103f43ea3c35f1b46bae2e41699f439",
410
-                "sha256:a9e3e3e9ab0241b0303206656a74d5cd6bd00fcad6f9ffd0ba6b8e35072f74d7",
411
-                "sha256:15ced95a00b55bb2fc22f3dddde1c8d6f270089f35c3af0e07306bc2ba1e1c4e",
412
-                "sha256:f7befe2249df41e012a3d8079ab3c7089be21969591eb77b21767fa24557a7b7",
413
-                "sha256:ec560e62258358afd7a1a3d34c8860fdf478e28c0999173f2d5c618fd2fd60d3",
414
-                "sha256:18d8dfe31bf0cb53d58694903e526be68f3cf48e6e3c6dfbbc1e7042b1693af7"
415
-            ],
416
-            "version": "==3.4.7"
424
+                "sha256:a29949dca189e65974cb241a742f35ecafe514a9ac9526c5277b25fc43d46e4a",
425
+                "sha256:bbd9164c7f319b2df3509ae9c997a84f726a4c728bbf7e33fac68ca31c377a2a",
426
+                "sha256:1ff7fd63dea53cb8032e229c35b1b4f8f4dbb0ad3a410677c2da94113e323b7c",
427
+                "sha256:df91961df04856976cf197cee072e17b1e193a32dacf9d97335105a4785f6370",
428
+                "sha256:5ed92aaf3eeafa84193ef56c0e2726ac8fc6324839214e00868cb7aae15ac819",
429
+                "sha256:caff049858f0c6471005b968fafff7824d8deda72eb4a3bc649bd42d05d9d9a9",
430
+                "sha256:2a531312dd3460f25f565d8c24c63b3f02bcd4df7cbd65fc0d215cd44e2bceb0",
431
+                "sha256:84aa0aa39e3f0d948a7f73bb443bc41936d749c6dc105656703845e0cd2410ba",
432
+                "sha256:7f8c4d7a2367a8bf3d65564f33ebd8bfcc278b0d5df962579c2546b35d370b25",
433
+                "sha256:b8b8695f442b3cd03ab1114e5765dd79ea334a2ae23ad0dcba47033dd3acb0cf",
434
+                "sha256:3165de346fa68889fb258d85352df6db36c314d9e50f18215abbeb113c91eb3a",
435
+                "sha256:7ee95f2d859f6dca2b01ba4e2245e0d102b0c35aff2269a9541dc70421949411",
436
+                "sha256:8e2c3e4bf9a49be16858f81fa6a283c789b489df9d0a57cfac200dd36f1ed4f0",
437
+                "sha256:2af97d4e3734d449f1cb6be8344f1cdc3e20b7ba08c3223cf0f93ae3ad2850e7",
438
+                "sha256:fe8ff144f82302021481150d6b86aa8445288faad331fa645a91e65bddc256b4",
439
+                "sha256:84abcf9d5d36c38ca0b70b6e89fb9e9deb19eb5b18ac865157f118c733fdb495",
440
+                "sha256:b59778f268acc8c67d71a9f0a182211209e69dba55aedd53315d3a2a34378f96",
441
+                "sha256:6340ef775a2ae164e62be4390a8b382307b317a1994bec594d787c4adaada18c",
442
+                "sha256:db3a5dc5dedaaa72a0339e2ff92bd749db13111acf5d2ba4e1492a61110e493e",
443
+                "sha256:8da80b68e39efc87cf7a135cf86f183abff775779690b6a3dfe1f8640142a9ea",
444
+                "sha256:38af2a480db3cd1b19411b597a022ae478b6c2b1383a857b2af161f800a3dba3",
445
+                "sha256:3b07e5231f1ad8f5962b195d030425aa9978570d6ccf59c585e50e57a3efae2d",
446
+                "sha256:00cc7767c7bbe91f15a65a1b2ebe7a08002b8ae8221c1dcecc5c5c9ab6f79753"
447
+            ],
448
+            "version": "==3.4.9"
449
+        },
450
+        "pytest": {
451
+            "hashes": [
452
+                "sha256:95fa025cd6deb5d937e04e368a00552332b58cae23f63b76c8c540ff1733ab6d",
453
+                "sha256:6074ea3b9c999bd6d0df5fa9d12dd95ccd23550df2a582f5f5b848331d2e82ca"
454
+            ],
455
+            "version": "==3.4.0"
456
+        },
457
+        "pytest-django": {
458
+            "hashes": [
459
+                "sha256:00995c2999b884a38ae9cd30a8c00ed32b3d38c1041250ea84caf18085589662",
460
+                "sha256:038ccc5a9daa1b1b0eb739ab7dce54e495811eca5ea3af4815a2a3ac45152309"
461
+            ],
462
+            "version": "==3.1.2"
417 463
         },
418 464
         "python-jose": {
419 465
             "hashes": [

+ 3
- 0
pytest.ini View File

@@ -0,0 +1,3 @@
1
+[pytest]
2
+DJANGO_SETTINGS_MODULE = lemoncurry.settings.dev
3
+python_files = tests/*.py

Loading…
Cancel
Save