Skip to content

Commit

Permalink
Update monkeypatching for 'test_build'
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Feb 10, 2025
1 parent 1045429 commit aa4732d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_build_conda.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# 3rd party
import dom_toml
import dulwich
import pytest
import southwark
from apeye import URL
Expand Down Expand Up @@ -49,6 +50,7 @@ def test_build(username: str, repository: str, tmp_pathplus: PathPlus, monkeypat
monkeypatch.setattr(StackedConfig, "default_backends", lambda *args: [])
email = b"repo-helper[bot] <74742576+repo-helper[bot]@users.noreply.github.com>"
monkeypatch.setattr(southwark.repo, "get_user_identity", lambda *args: email)
monkeypatch.setattr(dulwich.repo, "get_user_identity", lambda *args: email)

target_dir = tmp_pathplus / f"{username}_{repository}"

Expand Down

0 comments on commit aa4732d

Please sign in to comment.