Skip to content

Commit

Permalink
updated file-retriever and fixed tests (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlottekostelic authored Oct 29, 2024
1 parent bca6b25 commit 4c11953
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poetry.lock

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

3 changes: 2 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def mock_vendor_creds(monkeypatch) -> str:
def mock_open_file(mock_vendor_creds, mocker, monkeypatch) -> None:
m = mocker.mock_open(read_data=mock_vendor_creds)
mocker.patch("vendor_file_cli.utils.open", m)
monkeypatch.setattr("vendor_file_cli.utils.load_creds", lambda *args: None)
monkeypatch.setenv("USERPROFILE", "test")


@pytest.fixture
Expand Down Expand Up @@ -213,6 +213,7 @@ def build_sheet(*args, **kwargs):
"google.oauth2.credentials.Credentials.from_authorized_user_file",
lambda *args, **kwargs: MockCreds(),
)
monkeypatch.setattr("vendor_file_cli.utils.load_creds", lambda *args: None)


@pytest.fixture
Expand Down

0 comments on commit 4c11953

Please sign in to comment.