Skip to content

Commit 1697491

Browse files
committed
test(allows_next_version): Update to check for next release
1 parent 71f66e6 commit 1697491

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_common.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ class Hi:
4646

4747

4848
def test_allows_next_version(monkeypatch):
49+
TMUX_NEXT_VERSION = str(float(TMUX_MAX_VERSION) + 0.1)
50+
4951
def mock_tmux_cmd(param):
5052
class Hi:
51-
stdout = ["tmux next-2.9"]
53+
stdout = [f"tmux next-{TMUX_NEXT_VERSION}"]
5254
stderr = None
5355

5456
return Hi()
@@ -58,7 +60,7 @@ class Hi:
5860
assert has_minimum_version()
5961
assert has_gte_version(TMUX_MIN_VERSION)
6062
assert has_gt_version(TMUX_MAX_VERSION), "Greater than the max-supported version"
61-
assert "2.9" == get_version()
63+
assert TMUX_NEXT_VERSION == get_version()
6264

6365

6466
def test_get_version_openbsd(monkeypatch):

0 commit comments

Comments
 (0)