add tests

This commit is contained in:
2022-06-23 07:42:58 -05:00
parent 8bb35d0098
commit 32c6038d3f
8 changed files with 11535 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ import vcr
vcr_options = dict(
cassette_library_dir = "fixtures/vcr_cassettes/",
ignore_localhost=True,
filter_post_data_parameters=['email', 'password'],
# record_mode="new_episodes",
decode_compressed_response=True,
# allow_playback_repeats=True,
@@ -20,7 +21,7 @@ vcr_options = dict(
class TestGamescrapyr(unittest.TestCase):
"""Tests for `gamescrapyr` package."""
# @vcr.use_cassette(**vcr_options)
@vcr.use_cassette(**vcr_options)
def setUp(self):
"""Set up test fixtures, if any."""
email = getenv('email')
@@ -169,6 +170,7 @@ class TestGamescrapyr(unittest.TestCase):
pass
@vcr.use_cassette(**vcr_options, allow_playback_repeats=False)
def test_005_is_authorized(self):
email = getenv('email')
password = getenv('password')