Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reubenmiller/pytest-c8y
https://github.com/reubenmiller/pytest-c8y
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/reubenmiller/pytest-c8y
- Owner: reubenmiller
- License: other
- Created: 2022-06-25T23:09:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T16:50:52.000Z (almost 2 years ago)
- Last Synced: 2024-04-23T05:06:19.359Z (7 months ago)
- Language: Python
- Size: 172 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## pytest-c8y
pytest-c8y is a plugin for [pytest](http://pytest.org) that provides
support for running [Cumulocity IoT](https://www.softwareag.cloud/site/product/cumulocity-iot.html) based tests.## Getting started
1. Install poetry
```sh
curl -sSL https://install.python-poetry.org | python3 -
```2. Install the dependencies
```sh
poetry install
```3. Activate the virtual env
```sh
poetry env use python3
```If you are using VSCode then you can set the python interpreter to the virtualenv printed out to the console. This will enable you to run your tests from the editor.
4. Start an interactive shell
```sh
poetry shell
```## Tests
1. Create a .env (use the `.env.template` as a template) and fill
2. Activate the virtualenv shell
```sh
poetry shell
```4. Run the tests
```sh
dotenv run python3 -m pytest testing
```