add tests
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user