Skip to content

Commit

Permalink
Fix permission directory error for test
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusbv committed Jul 27, 2023
1 parent ae586c0 commit 8719d9c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/unit/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@

def test_local_get_local_path():
"""Test get_local_path(filename) in local plugin"""
expected_path = Path('/var/lib/csp-billing-adapter/foo')
assert get_local_path('foo') == expected_path
with patch(
'csp_billing_adapter_local.plugin.Path',
return_value=Path('/etc/')
):
expected_path = Path('/etc/foo')
assert get_local_path('foo') == expected_path


def test_local_get_cache():
Expand Down

0 comments on commit 8719d9c

Please sign in to comment.