Skip to content

Test case test_template_missing_returns_1 fail #71

Description

@jay009id

Hello, I got error in the test-tooling :

=================================== FAILURES ===================================
____________ TestGenerateDockerfile.test_template_missing_returns_1 ____________
tooling/tests/test_docker_generate_dockerfile.py:33: in test_template_missing_returns_1
    assert run("x", "y", project_root=tmp_path) == 1
E   AssertionError: assert 0 == 1
E    +  where 0 = <function run at 0x73e096789750>('x', 'y', project_root=PosixPath('/tmp/pytest-of-ptiadmin/pytest-7/test_template_missing_returns_0'))
----------------------------- Captured stdout call -----------------------------
✅ Generated: /tmp/pytest-of-ptiadmin/pytest-7/test_template_missing_returns_0/docker/microservices/Dockerfile.x_y
=========================== short test summary info ============================
FAILED tooling/tests/test_docker_generate_dockerfile.py::TestGenerateDockerfile::test_template_missing_returns_1 - AssertionError: assert 0 == 1
 +  where 0 = <function run at 0x73e096789750>('x', 'y', project_root=PosixPath('/tmp/pytest-of-ptiadmin/pytest-7/test_template_missing_returns_0'))
======================== 1 failed, 348 passed in 5.42s =========================
Build Failed: Command "tooling/.venv/bin/pytest tooling/tests -v --tb=short" failed: exit status 1

Looking at tooling/tests/test_docker_generate_dockerfile.py#L33 the run method return 0 because it generate a proper file. Am I miss understand about test_template_missing_returns_1 test case?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions