Skip to content

Commit

Permalink
Pytest and Allure support
Browse files Browse the repository at this point in the history
[ Fixes nspcc-dev/neofs-s3-gw#780 ]

Signed-off-by: Maksim Gelbakhiani <max@nspcc.io>
  • Loading branch information
Maksim Gelbakhiani committed Aug 28, 2023
1 parent 7e8e339 commit c4d3c5f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,6 @@ ${virtualenv} --python=$(which python3.6) virtualenv
# requirements.txt does not match setup.py requirements -- sucky but
# good enough for now
./virtualenv/bin/python3 setup.py develop

# Add pythonpath
echo "export PYTHONPATH=$PYTHONPATH:$(realpath .)" >> virtualenv/bin/activate
12 changes: 12 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import pytest
import configparser
from s3tests_boto3.functional import setup

def read_config(config_file):
config = configparser.ConfigParser()
config.read(config_file)
return config

@pytest.fixture(scope='session', autouse=True)
def nose_setup():
setup()
5 changes: 5 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ requests >=2.23.0
pytz >=2011k
httplib2
lxml
pytest >=7.3.1
allure-pytest ==2.9.45
pytest-nose-attrib >=0.1.1
pytest-timeout >=2.1.0
allure-combine ==1.0.8

0 comments on commit c4d3c5f

Please sign in to comment.