1#!/usr/bin/env python 2 3import os 4import unittest 5from pathlib import Path 6 7from python.runfiles import runfiles 8 9 10class TestUV(unittest.TestCase): 11 def test_uv_help(self): 12 rfiles = runfiles.Create() 13 assert rfiles is not None, "rfiles creation failed" 14 15 data_rpath = os.environ["DATA"] 16 uv_help_path = rfiles.Rlocation(data_rpath) 17 assert ( 18 uv_help_path is not None 19 ), f"the rlocation path was not found: {data_rpath}" 20 21 uv_help = Path(uv_help_path).read_text() 22 23 self.assertIn("Usage: uv [OPTIONS] <COMMAND>", uv_help) 24 25 26if __name__ == "__main__": 27 unittest.main() 28