def setUp(self): test_config_file = os.path.join(os.getcwd(), "server/tests/test_config.yml") self.config = read_config(config_path=test_config_file) print self.config
The script will also reset all content state to "needs_review" """ import os import json from ludobox import create_app from ludobox.content import get_content_index, read_content, validate_content from ludobox.flat_files import write_info_json from ludobox.config import read_config from ludobox.history import is_valid_event, make_create_event, add_event_to_history from ludobox.utils import json_serial # convert datetime config = read_config() app = create_app() USER_EMAIL = "*****@*****.**" def confirm_choice(): confirm = raw_input( "history for these games will be reset to zero : Yes or No [y/n] ?") if confirm != 'y' and confirm != 'n': print("\n Invalid Option. Please Enter a Valid Option.") return confirm_choice() elif confirm == 'y': return True elif confirm == 'n':
def setUp(self): self.config = read_config() self.game_path = os.path.join(os.getcwd(), 'server/tests/test-data/test-game')