More pytests (#7)

* add constants.py

* more tests and robustness.

* try/catch JSONDecodedError.
This commit is contained in:
Dave Gallant
2018-06-03 00:00:50 -04:00
committed by GitHub
parent 5a1799bdf5
commit e63413f05a
7 changed files with 895 additions and 16 deletions

8
tests/conftest.py Normal file
View File

@@ -0,0 +1,8 @@
import json
import pytest
@pytest.fixture
def threads_api_response():
with open("tests/mock_data/threads_api_response.json") as json_file:
return json.load(json_file)