Comments (12)
OK so where is the issue? :P
from pytest-check.
OK so where is the issue? :P
Ain't no issue for me anymore. Thanks for the module - very helpful.
from pytest-check.
Wondering whether https://api.travis-ci.com/v3/job/528047688/log.txt is another example of this where 'xfailed_key' fails to import. This was with python 3.6.
from pytest-check.
Wondering whether https://api.travis-ci.com/v3/job/528047688/log.txt is another example of this where 'xfailed_key' fails to import. This was with python 3.6.
Answering my own follow-up: this is Travis using built-in pytest which is easily fixed by moving to latest pytest in the install steps of the virtual env.
from pytest-check.
Currently passing CI : https://github.com/okken/pytest-check/actions/workflows/main.yml
If you are changing your PYTHONPATH, maybe don't do that?
from pytest-check.
changed the summary to "trouble setting up dev environment".
Does that capture the problem ok?
from pytest-check.
Not at all.
Still have problems with uderstanding what you want to tell :/
May I sask what is wromg with that procedure which I've described on top of this ticket?
from pytest-check.
If you want to use pytest-check, just install it: pip install pytest-check
If you want to clone it and run the tests:
$ git clone https://github.com/okken/pytest-check.git
$ cd pytest-check
$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ pip install tox
(venv) $ tox
... lots of tox output ...
____________________________________________ summary _____________________________________________
py37: commands succeeded
py38: commands succeeded
py39: commands succeeded
py310: commands succeeded
coverage: commands succeeded
flake8: commands succeeded
congratulations :)
If you want to run tests directly, without tox:
(venv) $ pip install flit pytest
(venv) $ flit install
(venv) $ pytest
====================================== test session starts =======================================
collected 38 items
tests/test_check.py ......................... [ 65%]
tests/test_check_context_manager.py ...... [ 81%]
tests/test_check_errors.py ... [ 89%]
tests/test_check_fixture.py . [ 92%]
tests/test_check_func_decorator.py ... [100%]
======================================= 38 passed in 1.03s =======================================
There is no use of setup.py
in this project.
There is no need to modify PYTHONPATH or PATH, either to run tests or to use pytest-check.
Are you using trying to use pytest-check? or run the tests for it?
Are you trying to do any of that outside of a virtual environment?
Is there something you think is broken in pytest-check?
Or are you asking for help with your particular use case?
from pytest-check.
There is no use of
setup.py
in this project.
There is no need to modify PYTHONPATH or PATH, either to run tests or to use pytest-check.
OK I think that I need to drop some context π
I'm not building/installing pytest-check
to use it with $PYTHINPATH but to package it as rpm and IPS packages.
That procedure which I've described is used typically on such packaging processes.
tox
indeed passes without errors but still issue remains why pytest with all those extensions which are listed on top is failing with some errors which suggests that it is not something related to testing methodologyπ€
In this case I've opened the ticket only because errors produced by non-pure pytest may point on some real issues with tested code .. or issues with those extensions.
Only this and nothing more π
On building my packages I'm using spawned to build only one package lxc zones or Solaris zones (in case of Solaris) with installed only build dependencies however before send ready to build package to the furnace I'm usually trying to perform some additional tests in env with installed all possible pytest extensions to see what pytest produces .. and above output is from such build "rich" build env π
Automatically generated setup.py
is in sdist tar ball downloaded from pypi.
I'm using setuptools
on build and install procedure because it is still easiest way to do what needs to be done on typical packaging process.
However if you know how alter my template procedure and do the same without using setuptools
I'll be really appreciated π
I think that above may fill few gaps in the context which indeed is not obvious (I should apologise for dropping just output without few additional bits .. so I'm doing that πββοΈ).
Nevertheless question why in this case pytest point on some issues still remains ..π€π₯Ί
from pytest-check.
Ok. That makes more sense.
However, I have no idea how to help you.
I've reached out to a couple of people.
I'll let you know if I find anything out.
This isn't going to be a problem with just this package, as I'm not doing anything super crazy here, just using flit for packaging.
from pytest-check.
I guess I'd recommend trying to just use the wheel instead of the tar.gz if there is a wheel.
from pytest-check.
use flit or py py/build
from pytest-check.
Related Issues (20)
- Feature request: Add new test outcome status ? HOT 1
- Test is not marked as xfailed when pytest.xfail() called after a failure. HOT 2
- RFE: is it possible to start making github releases?π€ HOT 6
- pytest check is not reporting all failures distributed across multiple python functions or setup fixture called within a test function HOT 3
- Linux environment does not have version 2.1.5 HOT 3
- Document & test: custom error message for check.raises HOT 2
- raises match argument HOT 1
- Is the 'raises' parameter in xfail ignored? HOT 1
- `pytest-check` causes `pytest-xdist` testing to fail HOT 1
- Add new check type: match - use regular expressions to tests againgst a string HOT 1
- pytest_html HOT 1
- How to have all failure on logging pytestfile HOT 1
- [v2.2.3] ExceptionRepr creation is not compatible with pytest < 7.3. HOT 2
- INTERNALERROR after upgrading package to 2.2.3 or 2.2.4 version HOT 5
- Add an xdist test
- Incorrect arguments to `ExceptionRepr` HOT 5
- d7afe0d6570c24d8d9ecc4443be9a765a0b85c2c HOT 1
- d7afe0d6570c24d8d9ecc4443be9a765a0b85c2c
- type-hinting the project
- Include a `check.match` and `check.not_match` for regex comparison
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-check.