Minor fixes
This commit is contained in:
@@ -91,7 +91,7 @@ class EventTestCase(APITestCase):
|
||||
self.assertEqual(response.data, serializer.data)
|
||||
|
||||
def test_get_invalid_event(self):
|
||||
response = self.client.get("{URL}200/", format="json")
|
||||
response = self.client.get(f"{URL}200/", format="json")
|
||||
self.assertEqual(response.status_code, status.HTTP_404_NOT_FOUND)
|
||||
|
||||
def test_post_event(self):
|
||||
|
||||
+2
-2
@@ -143,8 +143,8 @@ def about_view(request, *args, **kwargs):
|
||||
latest_commit = repo.git("rev-parse HEAD").decode('utf-8')
|
||||
latest_date = repo.git("show -s --format=%ci " + latest_commit).decode('utf-8')
|
||||
latest_tag = repo.git("describe --tags " + repo.git("rev-list --tags --max-count=1").decode('utf-8')).decode('utf-8')
|
||||
except Exception:
|
||||
pass
|
||||
except Exception as e:
|
||||
print(f"Git failed:\n{e}")
|
||||
|
||||
context = {
|
||||
'commit': latest_commit,
|
||||
|
||||
Reference in New Issue
Block a user