Skip to content

Commit

Permalink
#29 backend: delete broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
claasga committed Mar 21, 2024
1 parent a574eee commit 87e1322
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions backend/dps_training_k/game/tests/test_consumers.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,26 +61,3 @@ async def test_trainer_consumer_test_passthrough_request(self):

# Close the connection
await communicator.disconnect()


class PatientConsumerTestCase(TransactionTestCase):
async def test_trainer_consumer_example_request(self):
path = "/ws/patient/"
communicator = WebsocketCommunicator(application, path)
connected, _ = await communicator.connect()
self.assertTrue(connected)

# Send an "example" request type message to the server
await communicator.send_json_to(
{"type": "example", "exercise_code": "123", "patient_code": "123456"}
)

# Receive and test the response from the server
response = await communicator.receive_json_from()
self.assertEqual(
response,
{"messageType": "test-passthrough", "message": "received test event"},
)

# Close the connection
await communicator.disconnect()

0 comments on commit 87e1322

Please sign in to comment.