Skip to content

Commit

Permalink
Remove unused decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
agarrido19 committed Jan 28, 2020
1 parent 8243b19 commit e7b1d84
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/test_client_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@ def test_successful_login(site_urls):
assert 'Administrar' in soup.find('title').text


@pytest.mark.vcr
def test_debug_login(site_urls):
def test_debug_login():
os.environ['DEBUG'] = 'True'
with pytest.raises(DhlmexException) as execinfo:
client = Client(DHLMEX_USERNAME, DHLMEX_PASSWORD)
assert (
str(execinfo.value) == f'Client on debug, but Charles not running'
)
cert = client.session.cert
assert cert is None
assert client.session.cert
client._logout()


Expand Down

0 comments on commit e7b1d84

Please sign in to comment.