Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
submarcos committed May 15, 2024
1 parent 13dd449 commit faa964c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
15 changes: 0 additions & 15 deletions georiviere/river/tests/test_managers.py

This file was deleted.

3 changes: 3 additions & 0 deletions georiviere/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ class BaseLineStringFactory(factory.django.DjangoModelFactory):
@factory.lazy_attribute
def geom(self):
origin_lat = 0
origin_lon = 0
middle_lon = 0
destination_lat = 0
middle_lat = 0
destination_lon = 0
while origin_lat == destination_lat or middle_lat == origin_lat or destination_lat == middle_lat:
origin_lat, origin_lon, *other = fake.local_latlng(country_code='FR')
middle_lat, middle_lon, *other = fake.local_latlng(country_code='FR')
Expand Down

0 comments on commit faa964c

Please sign in to comment.