-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconsole.py
More file actions
29 lines (18 loc) · 741 Bytes
/
console.py
File metadata and controls
29 lines (18 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import pdb
from models.country import Country
from models.destination import Destination
import repositories.country_repository as country_repository
import repositories.destination_repository as destination_repository
country_repository.delete_all()
destination_repository.delete_all()
country_repository.select_all()
destination_repository.select_all()
country1 = Country('Brazil', '212 million', True)
country_repository.save(country1)
country2 = Country('Australia', '25 million', False)
country_repository.save(country2)
destination_1 = Destination('Foz do Iguacu', country1)
destination_repository.save(destination_1)
destination_2 = Destination('Sydney', country2)
destination_repository.save(destination_2)
pdb.set_trace()