Move test samples to reduce setuptools warnings

Previously there are a lot of warning messages of setuptools
in the log files of tox jobs. This is mainly caused by test
samples because these are in python codes directories.

This patch moves test samples from under
{tosca-parser_root}/toscaparser/tests to under
{tosca-parser_root}/samples/tests.

This patch also contains the following changes:
* Removed unused test samples.
* Fixed usage.rst command example.
* Changeing unit tests that reference external URL to use mock
* Mock methods used in unit tests have been made into common methods.

Change-Id: I80ab6ce0b3344f19afb4d16554c799747b1f2567
This commit is contained in:
Yoshiro Watanabe 2024-04-03 08:24:34 +00:00 committed by Yasufumi Ogawa
parent 5231982eb6
commit 1b9281a22c
258 changed files with 167 additions and 2094 deletions

View File

@ -13,7 +13,7 @@ you can install 0.3.0 or higher PyPI release of TOSCA-Parser as available at the
https://pypi.python.org/project/tosca-parser and test use the parser via CLI
entry point as::
tosca-parser --template-file=toscaparser/tests/data/tosca_helloworld.yaml
tosca-parser --template-file=samples/tests/data/tosca_helloworld.yaml
The value to the --template-file is required to be a relative or an absolute path.

Some files were not shown because too many files have changed in this diff Show More