-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #43 We were adding an extra "fixtures" directory for fixture paths in TARGETS. Pathing doesn't work like that for standard python imports, so remove this extra level. Also consolidate the two read_fixture() definitions into a single place Reviewed By: chantra Differential Revision: D58969097 fbshipit-source-id: 5dd8b08e5590f1690a7588179cd2832b6d6502fc
- Loading branch information
1 parent
c5a4ff6
commit 5714ecf
Showing
3 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,6 @@ | |
|
||
# pyre-unsafe | ||
|
||
import importlib.resources | ||
import os | ||
import random | ||
import re | ||
import shutil | ||
|
@@ -51,6 +49,8 @@ | |
init_pw_responses, | ||
) | ||
|
||
from . import read_fixture | ||
|
||
|
||
TEST_REPO = "repo" | ||
TEST_REPO_URL = f"https://user:[email protected]:0/org/{TEST_REPO}" | ||
|
@@ -104,12 +104,6 @@ | |
} | ||
|
||
|
||
def read_fixture(filepath: str) -> str: | ||
with importlib.resources.path(__package__, "fixtures") as base: | ||
with open(os.path.join(base, "fixtures", filepath)) as f: | ||
return f.read() | ||
|
||
|
||
class BranchWorkerMock(BranchWorker): | ||
def __init__(self, *args: Any, **kwargs: Any) -> None: | ||
presets = { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters