Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmed ElBakry committed May 31, 2022
1 parent e1aaf10 commit 952b487
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,10 @@ def test_get_files__return_single_file__success():


def test_get_files__return_files_in_directory__success():
assert app.get_files("tests/fixtures/dir") == [
"tests/fixtures/dir/file-a.yaml",
"tests/fixtures/dir/file-b.yaml",
"tests/fixtures/dir/file-c.yaml",
]
files = app.get_files("tests/fixtures/dir")
assert "tests/fixtures/dir/file-a.yaml" in files
assert "tests/fixtures/dir/file-b.yaml" in files
assert "tests/fixtures/dir/file-c.yaml" in files


def test_get_files__non_existing_directory__log_error_and_return_empty_list(caplog):
Expand Down

0 comments on commit 952b487

Please sign in to comment.