-
Notifications
You must be signed in to change notification settings - Fork 83
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
28476eb
commit 4be3fb3
Showing
2 changed files
with
21 additions
and
70 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import random | ||
import string | ||
|
||
from game.end_to_end_tests.base_game_test import BaseGameTest | ||
|
||
|
||
class TestSavingWorkspace(BaseGameTest): | ||
already_logged_on = False | ||
user_profile = None | ||
|
||
def test_save_and_load_workspace(self): | ||
self.login_once() | ||
level = 10 | ||
random_save_entry_name = "".join( | ||
random.choice(string.ascii_uppercase + string.digits) for _ in range(10) | ||
) | ||
return ( | ||
self.go_to_level(level) | ||
.save_solution(random_save_entry_name) | ||
.load_solution_by_name(random_save_entry_name) | ||
) |