Skip to content

Commit

Permalink
Pass pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DMalone87 committed Oct 20, 2024
1 parent 303811b commit aea3ef5
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tests/fifty_a/fifty_a/spiders/test_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,23 @@ def test_parse_command(self):
assert unit.url == mock_response.url
assert unit.model == "unit"
assert unit.source == "50-a.org"

try:
valid_data = CreateUnit(**unit.data)
except ValueError as e:
pytest.fail(f"Unit Data is invalid: {e}")

assert valid_data.name == "9th Precinct"
assert valid_data.website_url == "https://www1.nyc.gov/site/nypd/bureaus/patrol/precincts/9th-precinct.page"
assert valid_data.website_url == "https://www1.nyc.gov/" + \
"site/nypd/bureaus/patrol/precincts/9th-precinct.page"
assert valid_data.phone == "(212) 477-7812"
assert valid_data.description == "The 9th Precinct serves the area from East Houston Street to East 14 Street from Broadway, to the East River in Manhattan. The precinct is home to the East Village, and features Tompkins Square Park."
assert valid_data.description == "The 9th Precinct serves " + \
"the area from East Houston Street to East 14 Street from " + \
"Broadway, to the East River in Manhattan. The precinct is" + \
" home to the East Village, and features Tompkins " + \
"Square Park."
assert valid_data.address == "321 E 5th St"
assert valid_data.city == "New York"
assert valid_data.state == "NY"
assert valid_data.zip == "10003"
assert valid_data.commander_uid == "/officer/HUHH"



0 comments on commit aea3ef5

Please sign in to comment.