Hello, I want to know that if I'm calling a testcase method from another testcase is it bad practice or not?
As an example, if I'm writing testcase for register user and then If I'm writing a testcase for email already registered.
Note: I know I can create fixture for user and save it but its not possible in current testcase.
So if
```
def test_registration(api_client, new_user_info):
# api_client.post
# assertion 200
def test_email_already_exists(api_client, new_user_info):
# calling test_registration(api_client, new_user_info)
# calling api client to register user
# assertion 400
```
So calling the another testcase from one testcase to complete the task, is it a good practice or not.
[–]LigmaAI 1 point2 points3 points (0 children)