v2.18.4 (#866)
Co-authored-by: Albert Jiang <aj@mistral.ai> Co-authored-by: Clément Drouin <clement.drouin@mistral.ai> Co-authored-by: Laure Hugo <201583486+laure0303@users.noreply.github.com> Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai> Co-authored-by: Mert Unsal <mert.unsal@mistral.ai> Co-authored-by: Michel Thomazo <51709227+michelTho@users.noreply.github.com> Co-authored-by: Paul VEZIA <166131032+le-codeur-rapide@users.noreply.github.com> Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai> Co-authored-by: Quentin <quentin.torroba@mistral.ai> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
4e495f658d
commit
ac8f1a09fd
83 changed files with 1979 additions and 572 deletions
|
|
@ -217,6 +217,26 @@ class TestSessionLoaderFindLatestSession:
|
|||
)
|
||||
assert result == expected
|
||||
|
||||
def test_find_latest_session_matches_unnormalized_stored_cwd(
|
||||
self, session_config: SessionLoggingConfig, create_test_session, tmp_path: Path
|
||||
) -> None:
|
||||
project = tmp_path / "project"
|
||||
project.mkdir()
|
||||
unnormalized = project.parent / "sub" / ".." / "project"
|
||||
|
||||
expected = create_test_session(
|
||||
Path(session_config.save_dir),
|
||||
"unnormalized-session",
|
||||
working_directory=unnormalized,
|
||||
)
|
||||
|
||||
assert str(unnormalized) != str(project.resolve())
|
||||
|
||||
result = SessionLoader.find_latest_session(
|
||||
session_config, working_directory=project.resolve()
|
||||
)
|
||||
assert result == expected
|
||||
|
||||
def test_find_latest_session_nonexistent_save_dir(self) -> None:
|
||||
"""Test finding latest session when save directory doesn't exist."""
|
||||
# Modify config to point to non-existent directory
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue