Update fixture paths
This commit is contained in:
parent
c388aba95a
commit
cff82c7ec9
1 changed files with 6 additions and 6 deletions
|
@ -9,8 +9,8 @@ import time
|
||||||
|
|
||||||
|
|
||||||
# Set git repo
|
# Set git repo
|
||||||
repo_path = os.getenv("COUB_REPO_PATH", os.getcwd())
|
REPO_PATH = os.getenv("COUB_REPO_PATH", os.getcwd())
|
||||||
repo = Repo(repo_path)
|
repo = Repo(REPO_PATH)
|
||||||
|
|
||||||
# Set git environment
|
# Set git environment
|
||||||
author_name = "github-actions[bot]"
|
author_name = "github-actions[bot]"
|
||||||
|
@ -42,7 +42,7 @@ def create_tracked_change(content=None):
|
||||||
if content is None:
|
if content is None:
|
||||||
content = str(time.time())
|
content = str(time.time())
|
||||||
# Create a tracked file change
|
# Create a tracked file change
|
||||||
with open(TRACKED_FILE, "w") as f:
|
with open(os.path.join(REPO_PATH, TRACKED_FILE), "w") as f:
|
||||||
f.write(content)
|
f.write(content)
|
||||||
return content
|
return content
|
||||||
|
|
||||||
|
@ -51,20 +51,20 @@ def create_untracked_change(content=None):
|
||||||
if content is None:
|
if content is None:
|
||||||
content = str(time.time())
|
content = str(time.time())
|
||||||
# Create an untracked file change
|
# Create an untracked file change
|
||||||
with open(UNTRACKED_FILE, "w") as f:
|
with open(os.path.join(REPO_PATH, UNTRACKED_FILE), "w") as f:
|
||||||
f.write(content)
|
f.write(content)
|
||||||
return content
|
return content
|
||||||
|
|
||||||
|
|
||||||
def get_tracked_content():
|
def get_tracked_content():
|
||||||
# Read the content of the tracked file
|
# Read the content of the tracked file
|
||||||
with open(TRACKED_FILE, "r") as f:
|
with open(os.path.join(REPO_PATH, TRACKED_FILE), "r") as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
||||||
|
|
||||||
def get_untracked_content():
|
def get_untracked_content():
|
||||||
# Read the content of the untracked file
|
# Read the content of the untracked file
|
||||||
with open(UNTRACKED_FILE, "r") as f:
|
with open(os.path.join(REPO_PATH, UNTRACKED_FILE), "r") as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue