mirror of
https://github.com/huggingface/accelerate.git
synced 2025-10-20 18:13:46 +08:00
fix (#3808)
This commit is contained in:
@ -246,7 +246,7 @@ class FeatureExamplesTests(TempDirTestCase):
|
|||||||
@require_trackers
|
@require_trackers
|
||||||
@mock.patch.dict(
|
@mock.patch.dict(
|
||||||
os.environ,
|
os.environ,
|
||||||
{"WANDB_MODE": "offline", "DVCLIVE_TEST": "true", "SWANLAB_MODE": "offline"},
|
{"WANDB_MODE": "offline", "DVCLIVE_TEST": "true", "SWANLAB_MODE": "local"},
|
||||||
)
|
)
|
||||||
def test_tracking(self):
|
def test_tracking(self):
|
||||||
with tempfile.TemporaryDirectory() as tmpdir:
|
with tempfile.TemporaryDirectory() as tmpdir:
|
||||||
|
@ -526,7 +526,7 @@ class ClearMLTest(TempDirTestCase, MockingTestCase):
|
|||||||
|
|
||||||
|
|
||||||
@require_swanlab
|
@require_swanlab
|
||||||
@mock.patch.dict(os.environ, {"SWANLAB_MODE": "offline"})
|
@mock.patch.dict(os.environ, {"SWANLAB_MODE": "local"})
|
||||||
class SwanLabTrackingTest(TempDirTestCase, MockingTestCase):
|
class SwanLabTrackingTest(TempDirTestCase, MockingTestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
super().setUp()
|
super().setUp()
|
||||||
|
Reference in New Issue
Block a user