Skip to content

Commit

Permalink
fix test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjuhrich committed Sep 29, 2023
1 parent 888d3e4 commit c33732c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/model/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from flask import Flask

from sipa.backends import Backends, DataSource, Dormitory, InitContextCallable
from sipa.backends.datasource import SubnetCollection


class TestBackendInitializationCase(TestCase):
Expand All @@ -22,7 +23,9 @@ def setUp(self):
self.app.config["BACKEND"] = "foo"
self.app.config["SQLALCHEMY_TRACK_MODIFICATIONS"] = False
dormitory = Dormitory(
name="test", display_name="", subnets=[IPv4Network("127.0.0.0/8")]
name="test",
display_name="",
subnets=SubnetCollection([IPv4Network("127.0.0.0/8")]),
)
datasource = DataSource(
name='foo',
Expand Down

0 comments on commit c33732c

Please sign in to comment.