Библиотека для создания файла с переменными окружения для allure-report-service
Project description
Allure Environment builder
Библиотека для создания файла с переменными окружения для allure-report-service
Установка
pip install allure-env-builder
Использование
В библиотеке есть единственный класс AllureEnvironmentsBuilder,
с помощью которого можно
создать файлик с переменными окружения для
сервиса Allure Report
from allure_env_builder import AllureEnvironmentsBuilder
if __name__ == '__main__':
output = (
AllureEnvironmentsBuilder()
.add('key_1', 'value_1')
.add('key_2', 'value_2')
.build()
)
print(output)
данный код выведет:
key_1=value_1
key_2=value_2
Для того чтобы сохранить данные переменные в файл, необходимо методу build передать путь до директории, где будет
создан файл с названием environment.properties
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file allure-env-builder-1.0.0.tar.gz.
File metadata
- Download URL: allure-env-builder-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a2c7a92b30f36590d17df3ea05b0ab7e7f7781abc3e03de5d46169662c5d2ed
|
|
| MD5 |
7adc6a3d8aac05c1ed8ae75dc4e24b41
|
|
| BLAKE2b-256 |
28583c3622499595ed19a9017307810ffcd12f54eba1ee663c06c17777918390
|
File details
Details for the file allure_env_builder-1.0.0-py3-none-any.whl.
File metadata
- Download URL: allure_env_builder-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f6cc621825d8388613daadc14bb55339bdc6c923ff8b4cbee12ba58c8079748
|
|
| MD5 |
50769aea655ba77f153ca6ce610b7a7a
|
|
| BLAKE2b-256 |
f950835a01c5466ae98673da5a0976fa8b5d49bfb12db47ad010710aae877995
|