-
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.
- Loading branch information
1 parent
a765bf8
commit ee88ec8
Showing
5 changed files
with
36 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,6 @@ def seed_car(): | |
user = UserService.find_by_email("[email protected]") | ||
|
||
# mock user car | ||
CarService.add(user, "A11111", "Tesla") | ||
CarService.add(user, "A22222", "Starship") | ||
CarService.add(user, "A33333", "Falcon9") | ||
CarService.add(user, "A-11111", "Tesla Car") | ||
CarService.add(user, "A-22222", "Starship Rocket") | ||
CarService.add(user, "A-33333", "Falcon Nine Rocket") |
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 |
---|---|---|
|
@@ -15,16 +15,19 @@ def seed_chat(): | |
charlie = UserService.find_by_email("[email protected]") | ||
|
||
# mock dummy chat | ||
ChatService.send_chat(annie, bobbie, "1 start Hello Bobbie!") | ||
ChatService.send_chat(bobbie, annie, "2 Hi Annie!") | ||
ChatService.send_chat(annie, bobbie, "3 How are you?") | ||
ChatService.send_chat(bobbie, annie, "4 end I'm good!") | ||
|
||
ChatService.send_chat(bobbie, charlie, "1 start Hello Charlie!") | ||
ChatService.send_chat(charlie, bobbie, "2 end Hi Bobbie!") | ||
|
||
ChatService.send_chat(annie, charlie, "1 start Hello Charlie!") | ||
ChatService.send_chat(charlie, annie, "2 end Hi Annie!") | ||
# annie -> bobbie | ||
ChatService.send_chat(annie, bobbie, "Hello Bobbie!") | ||
ChatService.send_chat(bobbie, annie, "Hi Annie!") | ||
ChatService.send_chat(annie, bobbie, "Can you move your car?") | ||
ChatService.send_chat(bobbie, annie, "Sure!") | ||
|
||
# bobbie -> charlie | ||
ChatService.send_chat(bobbie, charlie, "Hi Charlie!") | ||
ChatService.send_chat(charlie, bobbie, "Hello Bobbie!") | ||
|
||
# annie -> charlie | ||
ChatService.send_chat(annie, charlie, "Hello Charlie!") | ||
ChatService.send_chat(charlie, annie, "Hi Annie!") | ||
|
||
|
||
if __name__ == "__main__": | ||
|
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 |
---|---|---|
|
@@ -12,8 +12,8 @@ def seed_user(): | |
"[email protected]", | ||
"root-password", | ||
"root", | ||
"root-firstname", | ||
"root-lastname", | ||
"Root", | ||
"Admin", | ||
"0000000000", | ||
"0000000000000", | ||
) | ||
|
@@ -22,29 +22,28 @@ def seed_user(): | |
"[email protected]", | ||
"annie-password", | ||
"annie", | ||
"annie-firstname", | ||
"annie-lastname", | ||
"1111111111", | ||
"Annie", | ||
"Carparker", | ||
"0101234567", | ||
"1111111111111", | ||
) | ||
|
||
UserService.register( | ||
"[email protected]", | ||
"bobbie-password", | ||
"bobbie", | ||
"bobbie-firstname", | ||
"bobbie-lastname", | ||
"2222222222", | ||
"Bobbie", | ||
"Carparker", | ||
"0201234567", | ||
"2222222222222", | ||
) | ||
|
||
UserService.register( | ||
"[email protected]", | ||
"charlie-password", | ||
"charlie", | ||
"charlie-firstname", | ||
"charlie-lastname", | ||
"3333333333", | ||
"Charlie", | ||
"Carparker", | ||
"0301234567", | ||
"3333333333333", | ||
) | ||
|