Skip to content

Update dependencies#157

Merged
MrCreosote merged 2 commits intodevelopfrom
dev-fix_tests
Jul 28, 2022
Merged

Update dependencies#157
MrCreosote merged 2 commits intodevelopfrom
dev-fix_tests

Conversation

@MrCreosote
Copy link
Copy Markdown
Member

... or alternately, sthu dependabot

This was much more of a pain than I expected when I started on it.

Also see #156

  • [n/a] I updated the README.md docs to reflect this change.

For changes to the codebase:

  • [n/a] I have written tests to cover this change.
  • This is not a breaking API change OR
  • This is a breaking API change and I have incremented the API version and added a summary to CHANGELOG.md.

... or alternately, sthu dependabot
@MrCreosote MrCreosote requested a review from a user July 27, 2022 23:15
Comment thread dev-requirements.txt
flake8==4.0.1
grequests==0.3.0
coverage==5.2.1
typed-ast>=1.4.0
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed in python 3.8+

Comment thread dev-requirements.txt
typed-ast>=1.4.0
black==22.3.0
pytest==6.2.5
jinja2==3.0.3
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already in requirements.txt

"""
from jsonschema import validators, Draft7Validator, FormatChecker, RefResolver

from jsonschema.compat import (
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jsonschema.compat was an internal-only API and was removed in 4.X (without a mention in the release notes either...)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm I tried to do this before and ran into errors

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay you got the functions from somewhere else. Nice.

else:
# Otherwise, pass off to urllib and assume utf-8
with urlopen(uri) as url:
# TODO https://github.com/kbase/relation_engine/issues/156
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this is for the remote specs loading that we don't even use? Maybe? If so, YAGNI for now

Comment thread scripts/run_tests.sh
# run importer/, relation_engine_server/, and spec/ tests
coverage run --branch -m pytest
# RE client tests - seemss like these tests were already run in the line above, why run them again?
# RE client tests - seems like these tests were already run in the line above, why run them again?
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay

Copy link
Copy Markdown

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Nice!

@MrCreosote MrCreosote merged commit 27819da into develop Jul 28, 2022
@MrCreosote MrCreosote deleted the dev-fix_tests branch July 28, 2022 17:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant