From 337365587af768cde5c870ed9c56c5ff5f9d12f8 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Sat, 23 Jan 2021 21:23:51 +0100 Subject: [PATCH] Added unittest for publisher --- .idea/sh_common_py_lib.iml | 1 + .idea/workspace.xml | 61 ++++++++++++++----- .../cli/cpl_cli/commands/build/app.py | 4 +- .../cli/cpl_cli/commands/publish/app.py | 4 +- .../base/publisher_base.py | 0 .../model/publish_settings_model.py | 4 +- .../model/publish_settings_name.py | 0 .../{publishing => publish}/model/template.py | 2 +- .../model/template_enum.py | 0 .../{publishing => publish}/publisher.py | 8 +-- src/tests/appsettings.edrafts-lapi.json | 43 ------------- src/tests/appsettings.edrafts-pc.json | 43 ------------- src/tests/build.json | 8 +-- src/tests/publish_test/__init__.py | 0 src/tests/publish_test/publisher_test.py | 52 ++++++++++++++++ src/tests/setup.py | 24 ++++++++ 16 files changed, 139 insertions(+), 115 deletions(-) rename src/sh_edraft/{publishing => publish}/base/publisher_base.py (100%) rename src/sh_edraft/{publishing => publish}/model/publish_settings_model.py (95%) rename src/sh_edraft/{publishing => publish}/model/publish_settings_name.py (100%) rename src/sh_edraft/{publishing => publish}/model/template.py (98%) rename src/sh_edraft/{publishing => publish}/model/template_enum.py (100%) rename src/sh_edraft/{publishing => publish}/publisher.py (97%) create mode 100644 src/tests/publish_test/__init__.py create mode 100644 src/tests/publish_test/publisher_test.py create mode 100644 src/tests/setup.py diff --git a/.idea/sh_common_py_lib.iml b/.idea/sh_common_py_lib.iml index ea803c41..7f4b6244 100644 --- a/.idea/sh_common_py_lib.iml +++ b/.idea/sh_common_py_lib.iml @@ -12,6 +12,7 @@ + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 8a2e33f9..8106a0a5 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -22,8 +22,30 @@