Open MaxenceGui opened 4 months ago
Is that issue still relevant ? The tests already all use asyncio.run() and there is already assertRaise in the unsuccessful tests.
What do you think ? @ChromaticPanic @Francois-Werbrouck
We are not using the azure_storage_api module anymore, also once #61 is merged, most functions return will already have been modified. I'd wait for the merge to double check all functions before officially closing this issue (if no-one else see's a problem with closing this)
Issue description
Currently, the tests for the backend contain code maintenance issues and some wrong test assertions. The use of the asyncio loop makes it difficult to maintain and understand the code while the unsuccessful test looks for a
return False
statement instead of an exception raised by the function that is being tested.Work to do
assertRaise
instead ofassertEqual
Acceptance criteria
assertRaise
exception instead ofassertEqual
for a False returnTasks