From 008efa1c24ee1aa2873f414dce1afa682bdb1d2f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi <256895@studenti.unimore.it> Date: Fri, 7 May 2021 19:46:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20Create=20test=20framework?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../runConfigurations/Backend__Run_tests.xml | 23 ++++ ...config__.xml => Backend__Start_server.xml} | 15 +-- code/backend/.gitignore | 5 + code/backend/backend.iml | 1 + code/backend/nest_backend/__main__.py | 64 +++------- code/backend/nest_backend/app.py | 111 ++++++++++++++++-- .../backend/nest_backend/database/__init__.py | 2 +- code/backend/nest_backend/database/base.py | 6 +- .../nest_backend/database/tables/Alert.py | 20 ++-- .../database/tables/Authorization.py | 12 +- .../database/tables/BoolOperation.py | 31 ++--- .../nest_backend/database/tables/Composed.py | 12 +- .../nest_backend/database/tables/Condition.py | 18 +-- .../nest_backend/database/tables/Contains.py | 12 +- .../database/tables/Notification.py | 13 +- .../database/tables/Repository.py | 28 ++--- .../nest_backend/database/tables/Tweet.py | 16 +-- .../nest_backend/database/tables/User.py | 16 +-- code/backend/nest_backend/gestione.py | 2 +- .../routes/repository/conditions/condition.py | 6 +- .../conditions/repository_conditions.py | 11 +- .../routes/repository/repositories.py | 4 +- .../routes/repository/repository.py | 16 +-- .../backend/nest_backend/routes/users/user.py | 8 +- .../nest_backend/routes/users/users.py | 4 +- code/backend/nest_backend/swagger.py | 3 +- code/backend/nest_backend/test/conftest.py | 7 ++ .../test/fixtures/flask_client.py | 37 ++++++ code/backend/nest_backend/test/test_doa.py | 9 ++ .../nest_backend/tweet_explorer/__main__.py | 4 +- .../test => old_unittest_tests}/login_test.py | 0 .../openapi_compliance_test.py | 0 .../repositories_test.py | 0 .../repository_conditions_test.py | 0 .../repository_test.py | 0 .../test => old_unittest_tests}/user_test.py | 0 .../test => old_unittest_tests}/users_test.py | 0 37 files changed, 324 insertions(+), 192 deletions(-) create mode 100644 .idea/runConfigurations/Backend__Run_tests.xml rename .idea/runConfigurations/{Backend___Make_your_own_run_config__.xml => Backend__Start_server.xml} (56%) create mode 100644 code/backend/nest_backend/test/conftest.py create mode 100644 code/backend/nest_backend/test/fixtures/flask_client.py create mode 100644 code/backend/nest_backend/test/test_doa.py rename code/backend/{nest_backend/test => old_unittest_tests}/login_test.py (100%) rename code/backend/{nest_backend/test => old_unittest_tests}/openapi_compliance_test.py (100%) rename code/backend/{nest_backend/test => old_unittest_tests}/repositories_test.py (100%) rename code/backend/{nest_backend/test => old_unittest_tests}/repository_conditions_test.py (100%) rename code/backend/{nest_backend/test => old_unittest_tests}/repository_test.py (100%) rename code/backend/{nest_backend/test => old_unittest_tests}/user_test.py (100%) rename code/backend/{nest_backend/test => old_unittest_tests}/users_test.py (100%) diff --git a/.idea/runConfigurations/Backend__Run_tests.xml b/.idea/runConfigurations/Backend__Run_tests.xml new file mode 100644 index 0000000..525e3b8 --- /dev/null +++ b/.idea/runConfigurations/Backend__Run_tests.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations/Backend___Make_your_own_run_config__.xml b/.idea/runConfigurations/Backend__Start_server.xml similarity index 56% rename from .idea/runConfigurations/Backend___Make_your_own_run_config__.xml rename to .idea/runConfigurations/Backend__Start_server.xml index 13fbfcc..b52a8fd 100644 --- a/.idea/runConfigurations/Backend___Make_your_own_run_config__.xml +++ b/.idea/runConfigurations/Backend__Start_server.xml @@ -1,22 +1,23 @@ - - + +