Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
add run id test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Friedowitz committed Jan 17, 2024
1 parent 3a40abd commit e086c41
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/integrations/wandb/test_run_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ def test_wandb_path(wandb_run_config):
assert wandb_run_config.wandb_path == "twitter.com/cortex-research/run-id"


def test_ensure_run_id():
env = WandbRunConfig(name="defined", project="defined", entity="defined")
assert env.run_id is not None # Pydantic validator fills this in


def test_env_vars(wandb_run_config):
env_vars = wandb_run_config.get_env_vars()
expected = ["WANDB_NAME", "WANDB_PROJECT", "WANDB_ENTITY", "WANDB_RUN_ID"]
Expand Down

0 comments on commit e086c41

Please sign in to comment.