summaryrefslogtreecommitdiff
path: root/tests/integration
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/test_stats.py7
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
63class StatsCount(TrackerTestCase): 64class StatsCount(TrackerTestCase):