I am writing test cases for my CRUD flask app https://github.com/Leo-g/Flask-Skeleton/blob/master/tests.py I want to ensure that the update and delete tests run only if the add tests succeeds. def test_add(self): rv = self.app.post('/users/add', data=dict(name = 'test name', email = 'test@email.com'), follow_redirects=True) assert 'Add was successful' in rv.data.decode('utf-8') def test_Update(self): with app.app_context(): id =...
Originally asked by Leyo R on Stack Exchange (stackoverflow) (CC BY-SA 3.0).
Variant 70.
Variant 595.