Skip to content

Sourcery refactored master branch#33

Merged
Kilo59 merged 1 commit into
masterfrom
sourcery/master
Aug 10, 2020
Merged

Sourcery refactored master branch#33
Kilo59 merged 1 commit into
masterfrom
sourcery/master

Conversation

@sourcery-ai
Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot commented May 31, 2020

Branch master refactored by Sourcery.

If you're happy with these changes, merge this Pull Request using the Squash and merge strategy.

See our documentation here.

Run Sourcery locally

Reduce the feedback loop during development by using the Sourcery editor plugin:

Review changes via command line

To manually merge these changes, make sure you're on the master branch, then run:

git fetch origin sourcery/master
git merge --ff-only FETCH_HEAD
git reset HEAD^

Comment thread tests/test_location.py

assert location_obj.country_code == country_code
assert not location_obj.serialize() == None
assert location_obj.serialize() is not None
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function test_location_class refactored with the following changes:

  • Use x is None rather than x == None
  • Simplify logical expression

Comment thread tests/test_routes.py
Comment on lines -90 to +94
state = "latest"

with mock.patch("app.services.location.jhu.datetime") as mock_datetime:
mock_datetime.utcnow.return_value.isoformat.return_value = DATETIME_STRING
mock_datetime.strptime.side_effect = mocked_strptime_isoformat
state = "latest"

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Function FlaskRoutesTest.test_v2_latest refactored with the following changes:

  • Move assignments closer to their usage

@sourcery-ai sourcery-ai Bot force-pushed the sourcery/master branch from 86fdf5e to 6e5bc13 Compare May 31, 2020 03:09
@Kilo59 Kilo59 merged commit ba5050e into master Aug 10, 2020
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.

2 participants