Closed kloczek closed 2 years ago
After add above files to --ignore list pytest shows warnings:
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-rdflib-sqlalchemy-0.5.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-rdflib-sqlalchemy-0.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra --ignore test/test_sqlalchemy_mysql.py --ignore test/test_sqlalchemy_postgresql_pg8000.py --ignore test/test_sqlalchemy_postgresql.py --ignore test/test_sqlalchemy.py --ignore test/test_sqlalchemy_sqlite.py
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/rdflib-sqlalchemy-0.5.0
collected 6 items
test/open_test.py . [ 16%]
test/test_aggregate_graphs.py .. [ 50%]
test/test_store_performance.py .. [ 83%]
test/test_type_to_term_combination.py . [100%]
============================================================================= warnings summary =============================================================================
../../../../../usr/lib/python3.8/site-packages/_pytest/fixtures.py:227
/usr/lib/python3.8/site-packages/_pytest/fixtures.py:227: UserWarning: Code: _pytestfixturefunction is not defined in namespace SDO
fixturemarker: Optional[FixtureFunctionMarker] = getattr(
test/test_store_performance.py: 36 warnings
/home/tkloczko/rpmbuild/BUILD/rdflib-sqlalchemy-0.5.0/rdflib_sqlalchemy/sql.py:65: SADeprecationWarning: Implicit coercion of SELECT and textual SELECT constructs into FROM clauses is deprecated; please call .subquery() on any Core select or ORM Query object in order to produce a subquery object.
select_clause = expression.select([functions.count().label('aCount')]).select_from(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
===================================================================== 6 passed, 37 warnings in 14.89s ======================================================================
thanks. i had at least started switching to pytest, I think. will try to switch over properly soon
On Fri, Apr 8, 2022, 11:07 Tomasz Kłoczko @.***> wrote:
After add above files to --ignore list pytest shows warnings:
- PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-rdflib-sqlalchemy-0.5.0-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-rdflib-sqlalchemy-0.5.0-2.fc35.x86_64/usr/lib/python3.8/site-packages+ /usr/bin/pytest -ra --ignore test/test_sqlalchemy_mysql.py --ignore test/test_sqlalchemy_postgresql_pg8000.py --ignore test/test_sqlalchemy_postgresql.py --ignore test/test_sqlalchemy.py --ignore test/test_sqlalchemy_sqlite.py=========================================================================== test session starts ============================================================================platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0rootdir: /home/tkloczko/rpmbuild/BUILD/rdflib-sqlalchemy-0.5.0collected 6 items test/open_test.py . [ 16%]test/test_aggregate_graphs.py .. [ 50%]test/test_store_performance.py .. [ 83%]test/test_type_to_term_combination.py . [100%] ============================================================================= warnings summary =============================================================================../../../../../usr/lib/python3.8/site-packages/_pytest/fixtures.py:227 /usr/lib/python3.8/site-packages/_pytest/fixtures.py:227: UserWarning: Code: _pytestfixturefunction is not defined in namespace SDO fixturemarker: Optional[FixtureFunctionMarker] = getattr( test/test_store_performance.py: 36 warnings /home/tkloczko/rpmbuild/BUILD/rdflib-sqlalchemy-0.5.0/rdflib_sqlalchemy/sql.py:65: SADeprecationWarning: Implicit coercion of SELECT and textual SELECT constructs into FROM clauses is deprecated; please call .subquery() on any Core select or ORM Query object in order to produce a subquery object. select_clause = expression.select([functions.count().label('aCount')]).select_from( -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html===================================================================== 6 passed, 37 warnings in 14.89s ======================================================================
— Reply to this email directly, view it on GitHub https://github.com/RDFLib/rdflib-sqlalchemy/issues/90#issuecomment-1093046155, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALLFSCH33G6FOHTKYKGKA3VEBKTXANCNFSM5S47XHUA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
So, we had already switched over on the develop branch. If you need a release version that uses pytest, please use the just-released 0.5.1.
Thank you 😄
nose
module is now deprecated and cannot be used with puthon 3.x https://nose.readthedocs.io/en/latest/On migration to
pytest
can be used https://github.com/schollii/nose2pytest/