Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup poetry for packaging and dependency management #136

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

renanivo
Copy link
Owner

@renanivo renanivo commented Jan 12, 2025

Replace requirements-dev.txt, setup.py and bumpversion

Obs: Bumping a version can be done with the command poetry version {major|minor|patch}

@renanivo renanivo marked this pull request as draft January 12, 2025 22:29
Copy link

codecov bot commented Jan 12, 2025

❌ 15 Tests Failed:

Tests completed Failed Passed Skipped
47 15 32 0
View the top 3 failed tests by shortest run time
tests/test_plugin.py::TestReport::test_should_use_python_patterns_configuration
Stack Traces | 0.163s run time
self = <tests.test_plugin.TestReport object at 0x000000013839d8d8>
testdir = <Testdir local('.../pytest-of-runner/pytest-0/test_should_use_python_patterns_configuration0')>

    def test_should_use_python_patterns_configuration(self, testdir):
        testdir.makeini(
            """
            [pytest]
            python_classes=Describe*
            python_files=*spec.py
            python_functions=it*
            """
        )
        testdir.makefile(
            '.py',
            module_spec="""
            class DescribeTest:
                def it_runs(self):
                    pass
            """,
        )
    
        result = testdir.runpytest('--force-testdox')
    
>       lines = result.stdout.get_lines_after('Test')

.../pytest-testdox/tests/test_plugin.py:155: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <_pytest.pytester.LineMatcher object at 0x0000000158a2b9b8>
fnline = 'Test'

    def get_lines_after(self, fnline: str) -> Sequence[str]:
        """Return all lines following the given line in the text.
    
        The given line can contain glob wildcards.
        """
        for i, line in enumerate(self.lines):
            if fnline == line or fnmatch(line, fnline):
                return self.lines[i + 1 :]
>       raise ValueError(f"line {fnline!r} not found in output")
E       ValueError: line 'Test' not found in output

.../hostedtoolcache/PyPy/3.10.14.../arm64/lib/pypy3.10.../site-packages/_pytest/pytester.py:1605: ValueError
tests/test_plugin.py::TestReport::test_should_print_the_module_name_of_a_test_without_class
Stack Traces | 0.171s run time
self = <tests.test_plugin.TestReport object at 0x0000000149dfde88>
testdir = <Testdir local('.../pytest-of-runner/pytest-0/test_should_print_the_module_name_of_a_test_without_class0')>

    def test_should_print_the_module_name_of_a_test_without_class(
        self, testdir
    ):
        testdir.makefile(
            '.py',
            test_module_name="""
            def test_a_failed_test_of_a_feature():
                assert False
            """,
        )
    
        result = testdir.runpytest('--force-testdox')
>       result.stdout.fnmatch_lines(['module name'])
E       Failed: remains unmatched: 'module name'

.../pytest-testdox/tests/test_plugin.py:121: Failed
tests/test_plugin.py::TestReport::test_should_print_a_green_passing_test
Stack Traces | 0.179s run time
self = <tests.test_plugin.TestReport object at 0x00000001383403a0>
testdir = <Testdir local('.../pytest-of-runner/pytest-0/test_should_print_a_green_passing_test0')>

    def test_should_print_a_green_passing_test(self, testdir):
        testdir.makepyfile(
            """
            def test_a_feature_is_working():
                assert True
            """
        )
    
        result = testdir.runpytest('--force-testdox')
    
        expected = '\033[92m ✓ a feature is working\033[0m'
>       assert expected in result.stdout.str()
E       AssertionError: assert '\x1b[92m ✓ a feature is working\x1b[0m' in ''
E        +  where '' = str()
E        +    where str = <_pytest.pytester.LineMatcher object at 0x0000000138514db0>.str
E        +      where <_pytest.pytester.LineMatcher object at 0x0000000138514db0> = <RunResult ret=ExitCode.INTERNAL_ERROR len(stdout.lines)=0 len(stderr.lines)=69 duration=0.17s>.stdout

.../pytest-testdox/tests/test_plugin.py:29: AssertionError

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant