Comments (10)
I believe that this is https://tox.wiki/en/latest/example/pytest.html#known-issues-and-limitations.
The issue is that the tests themselves are at both in the checkout and at the installed location. One fix is to explicitly pass the installed location as the directory to run tests from:
PYTHONPATH=/tmp/install/usr/lib/python3.10/site-packages pytest -ra --import-mode=importlib /tmp/install/usr/lib/python3.10/site-packages/kajiki
===================================================================== test session starts ======================================================================
platform linux -- Python 3.10.1, pytest-6.2.5, py-1.11.0, pluggy-0.13.1
rootdir: /tmp/install/usr/lib/python3.10/site-packages/kajiki
collected 154 items
../../../tmp/install/usr/lib/python3.10/site-packages/kajiki/tests/test_cli.py ........ [ 5%]
../../../tmp/install/usr/lib/python3.10/site-packages/kajiki/tests/test_doctype.py .. [ 6%]
../../../tmp/install/usr/lib/python3.10/site-packages/kajiki/tests/test_e2e.py .... [ 9%]
../../../tmp/install/usr/lib/python3.10/site-packages/kajiki/tests/test_ir.py ........ [ 14%]
../../../tmp/install/usr/lib/python3.10/site-packages/kajiki/tests/test_runtime.py ........ [ 19%]
../../../tmp/install/usr/lib/python3.10/site-packages/kajiki/tests/test_text.py ........................ [ 35%]
../../../tmp/install/usr/lib/python3.10/site-packages/kajiki/tests/test_xml.py ......................................................................... [ 82%]
........................... [100%]
======================================================================= warnings summary =======================================================================
../../../usr/lib/python3.10/site-packages/packaging/version.py:127: 712 warnings
/usr/lib/python3.10/site-packages/packaging/version.py:127: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
warnings.warn(
-- Docs: https://docs.pytest.org/en/stable/warnings.html
============================================================== 154 passed, 712 warnings in 0.29s ===============================================================
In a future version, we could move tests outside of the install path, which was probably a holdout from using the nose
test runner. This is more typical for pytest usage.
from kajiki.
Gentle ping .. any update?
from kajiki.
Just tested new 0.9.1 and lokks like still somthing is wrong.
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1, configfile: pytest.ini
plugins: datadir-1.3.1, regressions-2.3.1, cov-3.0.0, httpserver-1.0.4, mock-3.7.0, asyncio-0.18.2
asyncio: mode=legacy
collected 158 items / 12 errors
================================================================================== ERRORS ==================================================================================
____________________________________________________________________ ERROR collecting kajiki/doctype.py ____________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:338: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:369: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:545: in collect
module = import_path(self.path, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('kajiki.doctype', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/doctype.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/kajiki/doctype.py'))
__________________________________________________________________ ERROR collecting kajiki/html_utils.py ___________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:338: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:369: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:545: in collect
module = import_path(self.path, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('kajiki.html_utils', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/html_utils.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/kajiki/html_utils.py'))
_____________________________________________________________________ ERROR collecting kajiki/i18n.py ______________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:338: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:369: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:545: in collect
module = import_path(self.path, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('kajiki.i18n', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/i18n.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/kajiki/i18n.py'))
______________________________________________________________________ ERROR collecting kajiki/ir.py _______________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:338: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:369: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:545: in collect
module = import_path(self.path, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('kajiki.ir', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/ir.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/kajiki/ir.py'))
____________________________________________________________________ ERROR collecting kajiki/lnotab.py _____________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:338: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:369: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:545: in collect
module = import_path(self.path, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('kajiki.lnotab', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/lnotab.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/kajiki/lnotab.py'))
____________________________________________________________________ ERROR collecting kajiki/loader.py _____________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:338: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:369: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:545: in collect
module = import_path(self.path, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('kajiki.loader', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/loader.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/kajiki/loader.py'))
________________________________________________________________ ERROR collecting kajiki/markup_template.py ________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:338: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:369: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:545: in collect
module = import_path(self.path, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('kajiki.markup_template', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/markup_template.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/kajiki/markup_template.py'))
___________________________________________________________________ ERROR collecting kajiki/template.py ____________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:338: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:369: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:545: in collect
module = import_path(self.path, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('kajiki.template', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/template.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/kajiki/template.py'))
_____________________________________________________________________ ERROR collecting kajiki/text.py ______________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:338: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:369: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:545: in collect
module = import_path(self.path, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('kajiki.text', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/text.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/kajiki/text.py'))
_____________________________________________________________________ ERROR collecting kajiki/util.py ______________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:338: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:369: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:545: in collect
module = import_path(self.path, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('kajiki.util', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/util.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/kajiki/util.py'))
____________________________________________________________________ ERROR collecting kajiki/version.py ____________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:338: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:369: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:545: in collect
module = import_path(self.path, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('kajiki.version', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/version.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/kajiki/version.py'))
_________________________________________________________________ ERROR collecting kajiki/xml_template.py __________________________________________________________________
/usr/lib/python3.8/site-packages/_pytest/runner.py:338: in from_call
result: Optional[TResult] = func()
/usr/lib/python3.8/site-packages/_pytest/runner.py:369: in <lambda>
call = CallInfo.from_call(lambda: list(collector.collect()), "collect")
/usr/lib/python3.8/site-packages/_pytest/doctest.py:545: in collect
module = import_path(self.path, root=self.config.rootpath)
/usr/lib/python3.8/site-packages/_pytest/pathlib.py:556: in import_path
raise ImportPathMismatchError(module_name, module_file, path)
E _pytest.pathlib.ImportPathMismatchError: ('kajiki.xml_template', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/xml_template.py', PosixPath('/home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/kajiki/xml_template.py'))
============================================================================= warnings summary =============================================================================
../../../../../usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:191
/usr/lib/python3.8/site-packages/pytest_asyncio/plugin.py:191: DeprecationWarning: The 'asyncio_mode' default value will change to 'strict' in future, please explicitly use 'asyncio_mode=strict' or 'asyncio_mode=auto' in pytest configuration file.
config.issue_config_time_warning(LEGACY_MODE, stacklevel=2)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================= short test summary info ==========================================================================
ERROR kajiki/doctype.py - _pytest.pathlib.ImportPathMismatchError: ('kajiki.doctype', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python...
ERROR kajiki/html_utils.py - _pytest.pathlib.ImportPathMismatchError: ('kajiki.html_utils', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/...
ERROR kajiki/i18n.py - _pytest.pathlib.ImportPathMismatchError: ('kajiki.i18n', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/si...
ERROR kajiki/ir.py - _pytest.pathlib.ImportPathMismatchError: ('kajiki.ir', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-p...
ERROR kajiki/lnotab.py - _pytest.pathlib.ImportPathMismatchError: ('kajiki.lnotab', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3....
ERROR kajiki/loader.py - _pytest.pathlib.ImportPathMismatchError: ('kajiki.loader', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3....
ERROR kajiki/markup_template.py - _pytest.pathlib.ImportPathMismatchError: ('kajiki.markup_template', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_6...
ERROR kajiki/template.py - _pytest.pathlib.ImportPathMismatchError: ('kajiki.template', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/pyth...
ERROR kajiki/text.py - _pytest.pathlib.ImportPathMismatchError: ('kajiki.text', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/si...
ERROR kajiki/util.py - _pytest.pathlib.ImportPathMismatchError: ('kajiki.util', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/si...
ERROR kajiki/version.py - _pytest.pathlib.ImportPathMismatchError: ('kajiki.version', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python...
ERROR kajiki/xml_template.py - _pytest.pathlib.ImportPathMismatchError: ('kajiki.xml_template', '/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/...
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 12 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
====================================================================== 1 warning, 12 errors in 0.92s =======================================================================
That warning is possible to fix by patch
--- a/pytest.ini~ 2022-04-20 20:06:22.000000000 +0000
+++ b/pytest.ini 2022-04-20 20:31:25.336739128 +0000
@@ -1,4 +1,5 @@
[pytest]
+asyncio_mode = auto
addopts =
--doctest-modules
--doctest-glob=*.rst
from kajiki.
Is the goal to test the copy in /home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1
(the source checkout), or in /home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
(the install path)?
from kajiki.
I think that I found solution. I've started pytest with --pyargs kajiki
and seens pytest was able to find necessary modules.
+ /usr/bin/pytest -ra --pyargs kajiki
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1, configfile: pytest.ini
plugins: asyncio-0.18.2
asyncio: mode=auto
collected 2 items / 1 error
================================================================================== ERRORS ==================================================================================
_________________________________________________________________ ERROR collecting integration/pyramid.py __________________________________________________________________
../../BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages/kajiki/integration/pyramid.py:33: in <module>
from pyramid.interfaces import IRenderer, ITemplateRenderer
E ModuleNotFoundError: No module named 'pyramid'
========================================================================= short test summary info ==========================================================================
ERROR integration/pyramid.py - ModuleNotFoundError: No module named 'pyramid'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================= 1 error in 0.73s =============================================================================
Looks like pytest,ini needs to be adjusted.
Now I need to package pyramid
but this is not relevant to this ticket.
If I'll not back it will mean that after adding to my build env missing modules I did not found any other issues 😃
from kajiki.
I don't think you meant to use --pyargs kajiki
... this tells pytest to run tests found by collecting from the kajiki package, which doesn't have any tests in the package anymore (they were moved to the tests
directory).
Perhaps you wanted to run pytest /home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/tests
?
from kajiki.
I don't think you meant to use
--pyargs kajiki
... this tells pytest to run tests found by collecting from the kajiki package, which doesn't have any tests in the package anymore (they were moved to thetests
directory).
Yep you are right. My mistake.
Perhaps you wanted to run
pytest /home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1/tests
?
+ /usr/bin/pytest -ra tests
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1, configfile: pytest.ini
plugins: asyncio-0.18.2
asyncio: mode=auto
collected 154 items
tests/test_cli.py ........ [ 5%]
tests/test_doctype.py .. [ 6%]
tests/test_e2e.py .... [ 9%]
tests/test_ir.py ........ [ 14%]
tests/test_runtime.py ........ [ 19%]
tests/test_text.py ........................ [ 35%]
tests/test_xml.py .................................................................................................... [100%]
=========================================================================== 154 passed in 0.72s ============================================================================
So that works and it means that this test directory should be specified in pytest.ini to not force anyone to check where are the test units.
from kajiki.
So with final pytest.ini patch:
--- a/pytest.ini~ 2022-04-20 20:06:22.000000000 +0000
+++ b/pytest.ini 2022-04-21 00:16:59.940514025 +0000
@@ -5,4 +5,6 @@
--ignore=speedtest.py
--ignore=release_new_version.py
--ignore=kajiki/integration/pyramid.py
+asyncio_mode = auto
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL
+testpaths = tests
it is possible to run pytest without any parameters
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1, configfile: pytest.ini, testpaths: tests
plugins: asyncio-0.18.2
asyncio: mode=auto
collected 154 items
tests/test_cli.py ........ [ 5%]
tests/test_doctype.py .. [ 6%]
tests/test_e2e.py .... [ 9%]
tests/test_ir.py ........ [ 14%]
tests/test_runtime.py ........ [ 19%]
tests/test_text.py ........................ [ 35%]
tests/test_xml.py .................................................................................................... [100%]
=========================================================================== 154 passed in 0.75s ============================================================================
from kajiki.
Does commit 6dd9edd work out for you?
from kajiki.
Tested. pytest found 4 units more.
+ PYTHONPATH=/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/tkloczko/rpmbuild/BUILDROOT/python-kajiki-0.9.1-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra
=========================================================================== test session starts ============================================================================
platform linux -- Python 3.8.13, pytest-7.1.1, pluggy-1.0.0
rootdir: /home/tkloczko/rpmbuild/BUILD/kajiki-0.9.1, configfile: pytest.ini
collected 158 items
README.rst . [ 0%]
docs/templating-basics.rst . [ 1%]
docs/text-templates.rst . [ 1%]
docs/xml-templates.rst . [ 2%]
tests/test_cli.py ........ [ 7%]
tests/test_doctype.py .. [ 8%]
tests/test_e2e.py .... [ 11%]
tests/test_ir.py ........ [ 16%]
tests/test_runtime.py ........ [ 21%]
tests/test_text.py ........................ [ 36%]
tests/test_xml.py .................................................................................................... [100%]
=========================================================================== 158 passed in 0.75s ============================================================================
I've removed pytest-asyncio
from build dependencies so there is no that warning (for some reasons I had it in package BuildRequires)
from kajiki.
Related Issues (20)
- py:include function Not working
- Python 3.8 support HOT 3
- Many HTML entities don't work HOT 5
- Python2 support using nine HOT 8
- py:if and "lower than" comparison
- XML comments outside root node cause py:else to raise XMLTemplateCompileError
- XML template with declaration <?xml version="1.0"?> becomes invalid due to internal Kajiki manipulation
- Python 3.10 compatibility error HOT 4
- travis-ci.org shutting down HOT 2
- migrate to pytest? HOT 1
- drop support for Python 2.6, 2.7, 3.0-3.3? HOT 4
- Kajiki needs a new owner? HOT 12
- kajiki fails to build with Python 3.11
- kajiki IDE suppprt HOT 2
- simple extends examples HOT 5
- XMLTemplate not working HOT 3
- Unit tests are failing on Python 3.11 HOT 2
- There is no code.co_endlinetable and code.co_columntable in python3.11 HOT 2
- kajiki 0.9.2 requires python-3.11 according to linetable dependency HOT 4
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 kajiki.