Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_version_is_newer(requests):
version = __version__.replace("rc", "-rc")
newer_version = semver.bump_minor(version)
requests.get.return_value = FakeResponse(
200,
"http://someplace//usage/latest/",
{"version": __version__, "up_to_date": False}
)
latest_version = check_newer_version(command="init")
assert latest_version == __version__