Skip to content

AssertionError: '/home/user_name/project/work' != 'z:/project/work' #4

@szabgab

Description

@szabgab

After cloning the git repository and installing pytest I tried to run the tests with pytest and got this error:

==================================== test session starts =====================================
platform linux -- Python 3.10.7, pytest-7.2.0, pluggy-1.0.0
rootdir: /opt
collected 6 items                                                                            

tests/test_resolve.py ....                                                             [ 66%]
tests/test_vfxpaths.py Fs                                                              [100%]

========================================== FAILURES ==========================================
_____________________________ TestVfxpaths.test_path_is_replace ______________________________

self = <tests.test_vfxpaths.TestVfxpaths testMethod=test_path_is_replace>

    def test_path_is_replace(self):
        os.environ["VFXPATHS_GLOBAL_REPLACE"] = "1"
        get_root_path = vfxpaths.get_root_path()
>       self.assertEqual(get_root_path, "z:/project/work")
E       AssertionError: '/home/user_name/project/work' != 'z:/project/work'
E       - /home/user_name/project/work
E       + z:/project/work

tests/test_vfxpaths.py:21: AssertionError
================================== short test summary info ===================================
FAILED tests/test_vfxpaths.py::TestVfxpaths::test_path_is_replace - AssertionError: '/home/user_name/project/work' != 'z:/project/work'
=========================== 1 failed, 4 passed, 1 skipped in 0.05s ===========================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions