[deploy] Fix deploy failing
This commit is contained in:
@ -58,8 +58,10 @@ class TestVersionInfo:
|
||||
|
||||
result = version_info(mock_request)
|
||||
|
||||
# Should use the value from vrobbler/_commit.py
|
||||
assert result["git_commit"] == "unknown"
|
||||
# Should use whatever value is in vrobbler/_commit.py
|
||||
# Could be "unknown" or an actual commit hash
|
||||
assert "git_commit" in result
|
||||
assert result["git_commit"] != ""
|
||||
|
||||
def test_uses_commit_from_file_when_module_unavailable(self, mock_request):
|
||||
"""Test that commit from /var/lib/vrobbler/commit.txt is used"""
|
||||
|
||||
Reference in New Issue
Block a user