-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create default settings if not exists
- Loading branch information
1 parent
f442848
commit 6733c3b
Showing
4 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
from parking_lot.service import ParkingLotService | ||
from payment.service import PaymentService | ||
from reservation.service import ReservationService | ||
from settings.model import Setting | ||
from settings.service import SettingService | ||
from user.service import UserService | ||
|
||
|
@@ -28,8 +27,7 @@ def setup_db(): | |
@staticmethod | ||
def mock(): | ||
# mock setting | ||
setting = Setting(0.0, 10.0, 100.0) | ||
SettingService.set_settings(setting) | ||
SettingService.setup_default_settings() | ||
|
||
# mock user | ||
UserService.register("[email protected]", "@Test12345") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters