Skip to content
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

Sourcery refactored master branch #33

Merged
merged 1 commit into from
Aug 10, 2020
Merged

Sourcery refactored master branch #33

merged 1 commit into from
Aug 10, 2020

Conversation

sourcery-ai[bot]
Copy link

@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^

assert not location_obj.serialize() == None
assert location_obj.serialize() is not None
Copy link
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 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
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