Skip to content

Simple typo in test paths generation. #418

Closed
@emonsler

Description

@emonsler

Describe the bug
The generated test path in two tests does not occur under the specified tmp_path.

To Reproduce
Run tests under test_delta.py.

Expected behavior
Test paths generated should be under the passed tmp_path.

OS, DeepDiff version and Python version (please complete the following information):

  • DeepDiff Version 6.3.1

Additional context
There appears to be a simple typo, occurring twice.

path = os.path.join('tmp_path, delta_test2.delta')

path = os.path.join('tmp_path, delta_test2.delta')

path = os.path.join('tmp_path, delta_test2.delta')
should be
path = os.path.join(tmp_path, 'delta_test2.delta')
and
path = os.path.join(tmp_path, 'delta_test3.delta')

so that the delta_test?.delta leaf directories are under the provided tmp_path.

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