Skip to content

Commit 6306059

Browse files
yaooqinnCopilot
andcommitted
Fix version test to use __version__ instead of hardcoded string
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent d7200f6 commit 6306059

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

spark_history_cli/tests/test_core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,9 +412,10 @@ def test_help(self):
412412
assert "Spark History Server" in result.stdout
413413

414414
def test_version(self):
415+
from spark_history_cli import __version__
415416
result = self._run(["--version"])
416417
assert result.returncode == 0
417-
assert "1.0.1" in result.stdout
418+
assert __version__ in result.stdout
418419

419420
def test_apps_no_server(self):
420421
"""When no server is running, should fail gracefully."""

0 commit comments

Comments
 (0)