Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: no attribute 'base_url' on pitt_city_council #218

Open
bonfirefan opened this issue Mar 6, 2021 · 0 comments
Open

BUG: no attribute 'base_url' on pitt_city_council #218

bonfirefan opened this issue Mar 6, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@bonfirefan
Copy link
Collaborator

bonfirefan commented Mar 6, 2021

Error message pasted below from @0x1F602 seems to be for linux as the tests ran okay on my mac:

platform linux -- Python 3.7.10, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /home/server/Scripts/city-scrapers-pitt, configfile: setup.cfg
collected 384 items / 1 error / 383 selected

==================================== ERRORS ====================================
_______________ ERROR collecting tests/test_pitt_city_council.py _______________
tests/test_pitt_city_council.py:18: in <module>
    parsed_items = [item for item in spider.parse_legistar(test_response)]
tests/test_pitt_city_council.py:18: in <listcomp>
    parsed_items = [item for item in spider.parse_legistar(test_response)]
city_scrapers/spiders/pitt_city_council.py:37: in parse_legistar
    source=self._parse_source(event),
city_scrapers/spiders/pitt_city_council.py:82: in _parse_source
    default_source = "{}/Calendar.aspx".format(self.base_url)
E   AttributeError: 'PittCityCouncilSpider' object has no attribute 'base_url'
=============================== warnings summary ===============================```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant