Skip to content

Commit

Permalink
Fix vector feature imports
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Jun 24, 2024
1 parent d854226 commit 11d376c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion uvdat/core/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from .context import Context
from .dataset import Dataset
from .file_item import FileItem
from .map_layers import RasterMapLayer, VectorMapLayer
from .map_layers import RasterMapLayer, VectorFeature, VectorMapLayer
from .networks import NetworkEdge, NetworkNode
from .regions import DerivedRegion, SourceRegion
from .simulations import SimulationResult
Expand All @@ -14,6 +14,7 @@
FileItem,
RasterMapLayer,
VectorMapLayer,
VectorFeature,
SourceRegion,
DerivedRegion,
NetworkEdge,
Expand Down
3 changes: 2 additions & 1 deletion uvdat/core/tests/test_populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
RasterMapLayer,
SimulationResult,
SourceRegion,
VectorFeature,
VectorMapLayer,
)

Expand Down Expand Up @@ -42,4 +43,4 @@ def test_populate():
assert SimulationResult.objects.all().count() == 0
assert SourceRegion.objects.all().count() == 24
assert VectorMapLayer.objects.all().count() == 5
# TODO: Add vectorfeature assertion
assert VectorFeature.objects.count() > 0

0 comments on commit 11d376c

Please sign in to comment.