Fakultas Ilmu Komputer UI

Commit 6eb4241a authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

[REFACTOR] Fix duplicate (lokasi, tag) in fasilitas Object

parent b2450ca3
......@@ -21,8 +21,11 @@ class UpdatePlaceIdTest(TestCase):
"place_id": "IEUBJWLNDSOHIUJL",
"timestamp": time - timedelta(days=120)
})
fasilitas_dict = factory.mock_fasilitas_test.copy()
fasilitas_dict.update({"tag": 'RT'})
fasilitas1 = factory.create_fasilitas_test(user=user, lokasi=lokasi2)
fasilitas2 = factory.create_fasilitas_test(user=user, lokasi=lokasi2)
fasilitas2 = factory.create_fasilitas_test(user=user, lokasi=lokasi2,
fasilitas_dict=fasilitas_dict)
@patch('informasi_fasilitas.management.commands.update_place_id.requests.get')
def test_lokasi_expired(self, mock_get):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment