mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2026-01-02 01:47:04 -05:00
feat: Implement initial schema and add various API, service, and management command enhancements across the application.
This commit is contained in:
@@ -81,9 +81,7 @@ class ApiTestMixin:
|
||||
error_code: Expected error code in response
|
||||
message_contains: String that should be in error message
|
||||
"""
|
||||
self.assertApiResponse(
|
||||
response, status_code=status_code, response_status="error"
|
||||
)
|
||||
self.assertApiResponse(response, status_code=status_code, response_status="error")
|
||||
|
||||
if error_code:
|
||||
self.assertEqual(response.data["error"]["code"], error_code)
|
||||
@@ -289,9 +287,7 @@ class GeographyTestMixin:
|
||||
self.assertGreaterEqual(longitude, -180, "Longitude below valid range")
|
||||
self.assertLessEqual(longitude, 180, "Longitude above valid range")
|
||||
|
||||
def assertCoordinateDistance(
|
||||
self, point1: tuple, point2: tuple, max_distance_km: float
|
||||
):
|
||||
def assertCoordinateDistance(self, point1: tuple, point2: tuple, max_distance_km: float):
|
||||
"""
|
||||
Assert two geographic points are within specified distance.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user