diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 02:14:11 +0100 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-11-02 02:14:11 +0100 |
| commit | 4b7f4f04e39779c3496855ea46fff565c360a4d5 (patch) | |
| tree | 1384de505a2a9f13480366aae553e3aa3a00a53c /tests/integration/test_stats.py | |
| parent | 451947b7bed5ba6c9c925ceb10df39c42a330614 (diff) | |
Prepare a versioning mechanism for the tracker that works from tarballs
Diffstat (limited to 'tests/integration/test_stats.py')
| -rw-r--r-- | tests/integration/test_stats.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/integration/test_stats.py b/tests/integration/test_stats.py index 46e9c64..7b778d3 100644 --- a/tests/integration/test_stats.py +++ b/tests/integration/test_stats.py | |||
| @@ -55,9 +55,10 @@ class StatsShape(TrackerTestCase): | |||
| 55 | self.assertIsNotNone(root.find("torrents/count_mutex")) | 55 | self.assertIsNotNone(root.find("torrents/count_mutex")) |
| 56 | self.assertIsNotNone(root.find("connections/tcp/announce")) | 56 | self.assertIsNotNone(root.find("connections/tcp/announce")) |
| 57 | 57 | ||
| 58 | def test_version_names_a_commit(self): | 58 | def test_version_names_the_release(self): |
| 59 | self.assertIn(b"opentracker", self.tracker.stats("version").lower() + b"opentracker") | 59 | # A build from a checkout appends what git describe said, a build from |
| 60 | self.assertRegex(self.tracker.stats("version"), rb"https?://") | 60 | # a tarball has nothing to append, so the commit is optional here. |
| 61 | self.assertRegex(self.tracker.stats("version"), rb"^opentracker \d+\.\d+\.\d+( \(\S+\))?\n$") | ||
| 61 | 62 | ||
| 62 | 63 | ||
| 63 | class StatsCount(TrackerTestCase): | 64 | class StatsCount(TrackerTestCase): |
