-
Notifications
You must be signed in to change notification settings - Fork 21
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
BOM-1538 : Add Python 3.8 to testing #123
Conversation
@@ -48,7 +47,7 @@ class Locator(OpaqueKey): | |||
ALLOWED_ID_CHARS = r'[\w\-~.:]' | |||
DEPRECATED_ALLOWED_ID_CHARS = r'[\w\-~.:%]' | |||
|
|||
@abstractproperty | |||
@property |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why changing this from abstractproperty
to property
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
abstractproperty is depracated since Python 3.3. This was a failing in quality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add documentation link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -40,7 +40,7 @@ def test_description_locator_url(self): | |||
def test_description_locator_version(self): | |||
object_id = '{:024x}'.format(random.randrange(16 ** 24)) | |||
definition_locator = DefinitionLocator('html', object_id) | |||
self.assertEqual(object_id, str(definition_locator.version())) | |||
self.assertEqual(object_id, str(definition_locator.version)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you made this change ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quality failure
definition_locator.version is not callable (not-callable)
we are accessing a property here.
ce855da
to
99e12c8
Compare
d57a687
to
15366d8
Compare
Hi @jmbowman, every travis job in this PR and code-annotations is failing with following error, @UsamaSadiq and I tried to figure out the problem but no progress so far. Do you have any idea what could be the reason for this?
|
pip-tools was upgraded to 5.1.0 (which requires pip>=20), but pip is still pinned at 18.1. The installation of pip-tools noticed that and forced installation of a newer pip version (20.1, released yesterday) which tox-battery doesn't yet work with. Should probably explicitly install pip 20.0.2 for now to maintain compatibility with both pip-tools and tox-battery. |
Thans @jmbowman , It worked like a charm. |
Relevant JIRA : https://openedx.atlassian.net/browse/BOM-1538