aboutsummaryrefslogtreecommitdiff
path: root/autogpts/autogpt/tests/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'autogpts/autogpt/tests/utils.py')
-rw-r--r--autogpts/autogpt/tests/utils.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/autogpts/autogpt/tests/utils.py b/autogpts/autogpt/tests/utils.py
new file mode 100644
index 000000000..fac2816a3
--- /dev/null
+++ b/autogpts/autogpt/tests/utils.py
@@ -0,0 +1,14 @@
+import os
+
+import pytest
+
+
+def skip_in_ci(test_function):
+ return pytest.mark.skipif(
+ os.environ.get("CI") == "true",
+ reason="This test doesn't work on GitHub Actions.",
+ )(test_function)
+
+
+def get_workspace_file_path(workspace, file_name):
+ return str(workspace.get_path(file_name))