mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-19 15:04:26 +01:00
Add workspace abstraction (#2982)
* Add workspace abstraction * Remove old workspace implementation * Extract path resolution to a helper function * Add api key requirements to new tests
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import functools
|
||||
import os
|
||||
|
||||
import pytest
|
||||
@@ -5,6 +6,7 @@ import pytest
|
||||
|
||||
def requires_api_key(env_var):
|
||||
def decorator(func):
|
||||
@functools.wraps(func)
|
||||
def wrapper(*args, **kwargs):
|
||||
if not os.environ.get(env_var):
|
||||
pytest.skip(
|
||||
|
||||
Reference in New Issue
Block a user