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

Commit

Permalink
Merge pull request #90 from staticdev/windows-tests
Browse files Browse the repository at this point in the history
Windows tests
  • Loading branch information
Thiago C. D'Ávila committed Jul 6, 2020
2 parents f8a1124 + 541126f commit 63b4bf7
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 37 deletions.
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]

0 comments on commit 63b4bf7

Please sign in to comment.