-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade PointOfInterest structure, more changes after fresh rebase.
- Loading branch information
murchik
committed
Jun 7, 2022
1 parent
d6d9072
commit a93833e
Showing
3 changed files
with
23 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,16 +36,16 @@ def test_parse_address(self, normal_place): | |
assert address == '16-060 Zabłudów ul. Rynek 8' | ||
|
||
def test_parse_email(self, normal_place): | ||
description = PolandRJPSSpider().parse(normal_place, category='test').get('description') | ||
assert '[email protected]' in description | ||
point = PolandRJPSSpider().parse(normal_place, category='test') | ||
assert '[email protected]' == point.get('email') | ||
|
||
def test_parse_phone(self, normal_place): | ||
description = PolandRJPSSpider().parse(normal_place, category='test').get('description') | ||
assert 'tel. 85 7188100' in description | ||
point = PolandRJPSSpider().parse(normal_place, category='test') | ||
assert 'tel. 85 7188100' == point.get('phone') | ||
|
||
def test_parse_website(self, normal_place): | ||
description = PolandRJPSSpider().parse(normal_place, category='test').get('description') | ||
assert 'http://bip.mops.um.zabludow.wrotapodlasia.pl' in description | ||
point = PolandRJPSSpider().parse(normal_place, category='test') | ||
assert 'http://bip.mops.um.zabludow.wrotapodlasia.pl' == point.get('url') | ||
|
||
def test_parse_update_date(self, normal_place): | ||
description = PolandRJPSSpider().parse(normal_place, category='test').get('description') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters