[python] Add tests for each module

This commit is contained in:
Émilie Feral
2020-04-01 15:41:48 +02:00
committed by LeaNumworks
parent ec5803f06f
commit cdff61f64b
7 changed files with 139 additions and 0 deletions

12
python/test/time.cpp Normal file
View File

@@ -0,0 +1,12 @@
#include <quiz.h>
#include "execution_environment.h"
QUIZ_CASE(python_time) {
TestExecutionEnvironment env = init_environement();
assert_command_execution_fails(env, "monotonic()");
assert_command_execution_succeeds(env, "from time import *");
assert_command_execution_succeeds(env, "monotonic()");
assert_command_execution_succeeds(env, "sleep(23)");
deinit_environment();
}