Skip to main content

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

Release files for allure-env-builder 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for allure-env-builder 1.0.0
File Size Uploaded
allure-env-builder-1.0.0.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for allure-env-builder 1.0.0
File Interpreter ABI Platform
allure_env_builder-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size:7.4 kB

Release files / allure-env-builder-1.0.0.tar.gz

Download URL allure-env-builder-1.0.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8a2c7a92b30f36590d17df3ea05b0ab7e7f7781abc3e03de5d46169662c5d2ed
BLAKE2b-256 checksum
How to use checksums
28583c3622499595ed19a9017307810ffcd12f54eba1ee663c06c17777918390
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.0

Release files / allure_env_builder-1.0.0-py3-none-any.whl

Download URL allure_env_builder-1.0.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f6cc621825d8388613daadc14bb55339bdc6c923ff8b4cbee12ba58c8079748
BLAKE2b-256 checksum
How to use checksums
f950835a01c5466ae98673da5a0976fa8b5d49bfb12db47ad010710aae877995
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.0

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page