Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Windows tests #90

Merged
merged 2 commits into from
Jul 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- { python-version: 3.8, os: ubuntu-latest, session: "tests" }
- { python-version: 3.7, os: ubuntu-latest, session: "tests" }
- { python-version: 3.6, os: ubuntu-latest, session: "tests" }
# - { python-version: 3.8, os: windows-latest, session: "tests" }
- { python-version: 3.8, os: windows-latest, session: "tests" }
- { python-version: 3.8, os: macos-latest, session: "tests" }
- { python-version: 3.8, os: ubuntu-latest, session: "typeguard" }
- { python-version: 3.8, os: ubuntu-latest, session: "docs" }
Expand Down
71 changes: 37 additions & 34 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ PyPDF4 = "^1.27.0"

[tool.poetry.dev-dependencies]
pytest = "^5.4.3"
coverage = {extras = ["toml"], version = "^5.1"}
coverage = {extras = ["toml"], version = "^5.2"}
safety = "^1.9.0"
mypy = "^0.782"
typeguard = "^2.9.1"
Expand Down
4 changes: 3 additions & 1 deletion tests/test_file_handler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test cases for the file handler module."""
import os
from unittest.mock import Mock

import pytest
Expand All @@ -22,4 +23,5 @@ def test_get_filename_not_found(fs: Mock, cwd: Mock) -> None:
def test_get_filename_current_folder(fs: Mock, cwd: Mock) -> None:
"""It returns filename found in current folder."""
fs.create_file("/path/report.pdf")
assert file_handler.get_filenames(".", "*.pdf") == ["./report.pdf"]
expected_path = os.path.join(".", "report.pdf")
assert file_handler.get_filenames(".", "*.pdf") == [expected_path]