Пример #1
0
def reset_answer():
    """Resets the data"""
    data = request.form
    if data["answer"] == "YES":
        storage.reset()
        return "Database restarted", 200

    return "Database untouched", 200
Пример #2
0
 def setUp(self):
     """Set up tests."""
     storage.reset()
Пример #3
0
 def setUpClass(cls):
     """setup for the test"""
     cls.consol = HBNBCommand()
     storage.reset()