pytest_jira | py.test plugin to integrate with JIRA | Plugin library
kandi X-RAY | pytest_jira Summary
kandi X-RAY | pytest_jira Summary
py.test plugin to integrate with JIRA
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Update the configuration .
- Represents a Jira issue .
- The list of component names .
- Returns the set of fixed fixes .
- Returns a set of all installed versions .
pytest_jira Key Features
pytest_jira Examples and Code Snippets
def pytest_configure(config):
# register your new marker to avoid warnings
config.addinivalue_line(
"markers",
"key: specify a test key"
)
def pytest_addoption(parser):
# add your new filter option (you ca
# conftest.py
import os
import pytest
def pytest_configure(config):
username = os.getenv('JIRA_USER', None)
password = os.getenv('JIRA_PASSWORD', None)
if username and password:
config.option.jira_username = username
Community Discussions
Trending Discussions on pytest_jira
QUESTION
I am trying to integrate pytest-jira
plugin to my python script. I am referring to this link.
It is not feasible to hard code username/password in clear text form in ~/jira.cfg
. Is there any way I can override them from outside? Basically I am looking for ways to skip hard coding of password in jira.cfg
.
ANSWER
Answered 2018-Mar-22 at 21:25You can simply overwrite the arguments by defining your own pytest_configure
hook. That's the beauty of pytest
: you can redefine almost everything and adapt it to your particular needs. Example with reading username/password from environment variables:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pytest_jira
You can use pytest_jira like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page