Skip to content

Commit

Permalink
Improve coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
agarrido19 committed Jan 27, 2020
1 parent 446d3ac commit f62e80d
Show file tree
Hide file tree
Showing 5 changed files with 2,377 additions and 1,451 deletions.
2 changes: 0 additions & 2 deletions dhlmex/resources/guides.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ def create_guide(
guide_number = guide._force_percent(view_state)
guide_bytes = guide._download_pdf(guide_number)
return guide_number, guide_bytes
else:
raise DhlmexException('Error while creating guide')
else:
raise DhlmexException('No available guides')
except HTTPError as httpe:
Expand Down
15 changes: 15 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,21 @@ def invalid_postal_code() -> Destination:
)


@pytest.fixture
def fake_destination() -> Destination:
return Destination(
company='GUADALUPE IVONNE SANTILLANES SANTILLANES',
contact='GUADALUPE IVONNE SANTILLANES SANTILLANES',
email='[email protected]',
phone='6623262213',
address1='AVENIDA ARCELIA MORAGA 171',
postal_code='83105',
neighborhood='CARIDAD',
city='HERMOSILLO',
state='SON',
)


@pytest.fixture
def details() -> OrderDetails:
return OrderDetails(
Expand Down
Loading

0 comments on commit f62e80d

Please sign in to comment.