diff options
| author | Yuval Adam <_@yuv.al> | 2020-09-23 17:38:45 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2020-09-23 17:38:45 +0300 |
| commit | 081abd6b2362a1ee9da9655428e625b96ad46251 (patch) | |
| tree | aaf74a720247bf0407120afd61592f000b05c4b5 | |
| parent | 3a7bb26bb308f3460056cf0612b913353b73e0cd (diff) | |
Add pytest
| -rw-r--r-- | Pipfile | 2 | ||||
| -rw-r--r-- | Pipfile.lock | 83 | ||||
| -rw-r--r-- | iss/tests/__init__.py | 0 | ||||
| -rw-r--r-- | iss/tests/test_predictions.py | 2 |
4 files changed, 85 insertions, 2 deletions
@@ -4,6 +4,7 @@ url = "https://pypi.org/simple" verify_ssl = true [dev-packages] +pytest = "*" [packages] pyephem = "*" @@ -12,6 +13,7 @@ fastapi = "*" uvicorn = "*" [scripts] +test = "pytest" server = "uvicorn iss.server:app" [requires] diff --git a/Pipfile.lock b/Pipfile.lock index 1a36a7d..f38f0f0 100644 --- a/Pipfile.lock +++ b/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "d53d9b699a91a298fa8fb59a7b710be408fae32954ed2062e6cbf83fd7e9dd0c" + "sha256": "ac61cc8b400881b748f5942204cd7c8f64bd893a09f6a58cd9ea63329a535183" }, "pipfile-spec": 6, "requires": { @@ -282,5 +282,84 @@ "version": "==8.1" } }, - "develop": {} + "develop": { + "attrs": { + "hashes": [ + "sha256:26b54ddbbb9ee1d34d5d3668dd37d6cf74990ab23c828c2888dccdceee395594", + "sha256:fce7fc47dfc976152e82d53ff92fa0407700c21acd20886a13777a0d20e655dc" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==20.2.0" + }, + "iniconfig": { + "hashes": [ + "sha256:80cf40c597eb564e86346103f609d74efce0f6b4d4f30ec8ce9e2c26411ba437", + "sha256:e5f92f89355a67de0595932a6c6c02ab4afddc6fcdc0bfc5becd0d60884d3f69" + ], + "version": "==1.0.1" + }, + "more-itertools": { + "hashes": [ + "sha256:6f83822ae94818eae2612063a5101a7311e68ae8002005b5e05f03fd74a86a20", + "sha256:9b30f12df9393f0d28af9210ff8efe48d10c94f73e5daf886f10c4b0b0b4f03c" + ], + "markers": "python_version >= '3.5'", + "version": "==8.5.0" + }, + "packaging": { + "hashes": [ + "sha256:4357f74f47b9c12db93624a82154e9b120fa8293699949152b22065d556079f8", + "sha256:998416ba6962ae7fbd6596850b80e17859a5753ba17c32284f67bfff33784181" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==20.4" + }, + "pluggy": { + "hashes": [ + "sha256:15b2acde666561e1298d71b523007ed7364de07029219b604cf808bfa1c765b0", + "sha256:966c145cd83c96502c3c3868f50408687b38434af77734af1e9ca461a4081d2d" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==0.13.1" + }, + "py": { + "hashes": [ + "sha256:366389d1db726cd2fcfc79732e75410e5fe4d31db13692115529d34069a043c2", + "sha256:9ca6883ce56b4e8da7e79ac18787889fa5206c79dcc67fb065376cd2fe03f342" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==1.9.0" + }, + "pyparsing": { + "hashes": [ + "sha256:c203ec8783bf771a155b207279b9bccb8dea02d8f0c9e5f8ead507bc3246ecc1", + "sha256:ef9d7589ef3c200abe66653d3f1ab1033c3c419ae9b9bdb1240a85b024efc88b" + ], + "markers": "python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==2.4.7" + }, + "pytest": { + "hashes": [ + "sha256:0e37f61339c4578776e090c3b8f6b16ce4db333889d65d0efb305243ec544b40", + "sha256:c8f57c2a30983f469bf03e68cdfa74dc474ce56b8f280ddcb080dfd91df01043" + ], + "index": "pypi", + "version": "==6.0.2" + }, + "six": { + "hashes": [ + "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259", + "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced" + ], + "markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'", + "version": "==1.15.0" + }, + "toml": { + "hashes": [ + "sha256:926b612be1e5ce0634a2ca03470f95169cf16f939018233a670519cb4ac58b0f", + "sha256:bda89d5935c2eac546d648028b9901107a595863cb36bae0c73ac804a9b4ce88" + ], + "version": "==0.10.1" + } + } } diff --git a/iss/tests/__init__.py b/iss/tests/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/iss/tests/__init__.py diff --git a/iss/tests/test_predictions.py b/iss/tests/test_predictions.py new file mode 100644 index 0000000..43dad05 --- /dev/null +++ b/iss/tests/test_predictions.py @@ -0,0 +1,2 @@ +def test_foo(): + assert 1 == 1 |
