Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
removes useless test case
Browse files Browse the repository at this point in the history
GabrielBarberini committed Nov 16, 2024
1 parent 95bce8f commit 921153e
Showing 2 changed files with 0 additions and 30 deletions.
15 changes: 0 additions & 15 deletions tests/test_routes/test_environments_route.py
Original file line number Diff line number Diff line change
@@ -180,21 +180,6 @@ def test_delete_env():
mock_delete_env.assert_called_once_with('123')


def test_delete_env_not_found():
with patch.object(
EnvController,
'delete_env_by_id',
return_value=EnvDeleted(env_id='123'),
) as mock_delete_env:
response = client.delete('/environments/123')
assert response.status_code == 200
assert response.json() == {
'env_id': '123',
'message': 'Environment successfully deleted',
}
mock_delete_env.assert_called_once_with('123')


def test_delete_env_server_error():
with patch.object(
EnvController,
15 changes: 0 additions & 15 deletions tests/test_routes/test_motors_route.py
Original file line number Diff line number Diff line change
@@ -397,21 +397,6 @@ def test_delete_motor():
mock_delete_motor.assert_called_once_with('123')


def test_delete_motor_not_found():
with patch.object(
MotorController,
'delete_motor_by_id',
return_value=MotorDeleted(motor_id='123'),
) as mock_delete_motor:
response = client.delete('/motors/123')
assert response.status_code == 200
assert response.json() == {
'motor_id': '123',
'message': 'Motor successfully deleted',
}
mock_delete_motor.assert_called_once_with('123')


def test_delete_motor_server_error():
with patch.object(
MotorController,

0 comments on commit 921153e

Please sign in to comment.