Skip to content

Commit

Permalink
Test creation of sessions with empty name (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Dec 28, 2024
1 parent 1bd7f8b commit b876b88
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/unit/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ def test_global_session_naming(catalog):
assert re.match(pattern, ds_tmp.name) is not None


def test_session_empty_name():
name = Session("").name
assert name.startswith(Session.GLOBAL_SESSION_NAME + "_")


def test_ephemeral_dataset_lifecycle(catalog):
session_name = "asd3d4"
with Session(session_name, catalog=catalog) as session:
Expand Down

0 comments on commit b876b88

Please sign in to comment.