Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gdower committed Nov 6, 2024
1 parent 92beb07 commit fa2c7a0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 27 deletions.
4 changes: 3 additions & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[pytest]
python_files = test-*.py
testpaths = test
testpaths = test
filterwarnings =
ignore:The 'strip_cdata' option of HTMLParser\(\) has never done anything and will eventually be removed
26 changes: 3 additions & 23 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
beautifulsoup4==4.12.2
bs4==0.0.1
certifi==2023.7.22
charset-normalizer==3.2.0
codecov==2.1.13
coverage==7.3.0
idna==3.4
iniconfig==2.0.0
lxml==4.9.3
multidict==6.0.4
packaging==23.1
pluggy==1.3.0
pytest==7.4.0
pytest-cov==4.1.0
python-dateutil==2.8.2
PyYAML==6.0.1
requests==2.31.0
six==1.16.0
soupsieve==2.4.1
urllib3==2.0.4
vcrpy==5.1.0
wrapt==1.15.0
yarl==1.9.2
beautifulsoup4>4.9
lxml>4.6
requests>2.25
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@
"dev": [
"codecov",
"pytest",
"pytest-cov",
"pytest-cov",
"python-dateutil",
"sphinx>7.2.0",
"sphinx_issues",
"sphinx-rtd-theme",
"twine",
"twine",
"vcrpy",
"wheel"],
},
classifiers=[
Expand Down
2 changes: 1 addition & 1 deletion test/test-person.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_search_person_basic():
def test_search_person_basic2():
"person.search - basic test 2"
res = bananompy.person.search('smith', families_collected='scarabaeidae', strict=True)
assert 'Andrew B.T. Smith' == res['dataFeedElement'][0]['item']['name']
assert res['dataFeedElement'][0]['item']['name'] in ['M Alex Smith', 'Andrew B.T. Smith']


@vcr.use_cassette("test/vcr_cassettes/test_person_search_strict.yaml")
Expand Down

0 comments on commit fa2c7a0

Please sign in to comment.