Skip to content

Commit

Permalink
fix #42
Browse files Browse the repository at this point in the history
  • Loading branch information
KissPeter committed Oct 1, 2021
1 parent c0cd93b commit 9360914
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ script:
- pip3 install -r test/requirements_for_test.txt
- python3 test/test_application.py&
- pytest -x --hypothesis-show-statistics --cov-report html --cov=apifuzzer --html=pytest.html --self-contained-html --durations=10 --show-capture=stdout -vv -rP test
- vulture --min-confidence 100 apifuzzer/ || true
after_script:
- coverage xml
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_PYTHON_VERSION" == "3.8" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
2 changes: 1 addition & 1 deletion apifuzzer/openapi_template_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def compile_base_url(self, alternate_url):
_base_url = self._compile_base_url_for_swagger(alternate_url)
self.logger.debug('Using swagger style url: {}'.format(_base_url))
elif self.api_resources.get('openapi', "").startswith('3'):
_base_url = self._compile_base_url_for_swagger(alternate_url)
_base_url = self._compile_base_url_for_openapi(alternate_url)
self.logger.debug('Using openapi style url: {}'.format(_base_url))
else:
self.logger.warning('Failed to find base url, using the alternative one ({})'.format(alternate_url))
Expand Down
1 change: 1 addition & 0 deletions test/requirements_for_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ pytest-html==3.1.1
coverage==5.3.1
hypothesis==5.43.4
attrs>=19.2.0
vulture==2.3

0 comments on commit 9360914

Please sign in to comment.