Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zzstoatzz committed Jul 25, 2024
1 parent e2e366f commit a7309ca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/prefect/profiles.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# This is a template for profile configuration for Prefect.
# You can modify these profiles or create new ones to suit their needs.

active = "ephemeral"
active = "default"

[profiles.default]

[profiles.ephemeral]
PREFECT_API_DATABASE_CONNECTION_URL = "sqlite+aiosqlite:///prefect.db"
Expand Down
6 changes: 4 additions & 2 deletions tests/cli/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,9 @@ def test_populate_defaults(tmp_path, monkeypatch):
assert populated_profiles.names == default_profiles.names
assert populated_profiles.active_name == default_profiles.active_name

assert {"local", "ephemeral", "test", "cloud"} == set(populated_profiles.names)
assert {"local", "ephemeral", "test", "cloud", "default"} == set(
populated_profiles.names
)

for name in default_profiles.names:
assert populated_profiles[name].settings == default_profiles[name].settings
Expand Down Expand Up @@ -640,7 +642,7 @@ def test_populate_defaults_with_existing_profiles(tmp_path, monkeypatch):

new_profiles = load_profiles()
assert "existing" not in new_profiles.names
assert {"local", "ephemeral", "test", "cloud"} == set(new_profiles.names)
assert {"local", "ephemeral", "test", "cloud", "default"} == set(new_profiles.names)

backup_profiles = _read_profiles_from(temp_profiles_path.with_suffix(".toml.bak"))
assert "existing" in backup_profiles.names
Expand Down
2 changes: 1 addition & 1 deletion tests/test_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def test_root_settings_context_default(self, monkeypatch):
Profile(name="default", settings={}, source=DEFAULT_PROFILES_PATH),
override_environment_variables=False,
)
use_profile().__enter__.assert_called_once_with()
use_profile().__enter__.assert_called_once()
assert result is not None

@pytest.mark.parametrize(
Expand Down

0 comments on commit a7309ca

Please sign in to comment.