diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-04 21:09:42 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2023-01-04 21:09:42 -0500 |
commit | 3a02703108831a554ec893b9031dcebe377fdd89 (patch) | |
tree | e2b579730daf750c05bfb2e0ee0596e0fa47079b /tests/test_filereporter.py | |
parent | 7b487470d0cccaf12d06cc363318c9b5eca6985f (diff) | |
download | python-coveragepy-git-3a02703108831a554ec893b9031dcebe377fdd89.tar.gz |
mypy: test_debug.py test_execfile.py test_filereporter.py test_files.py
Diffstat (limited to 'tests/test_filereporter.py')
-rw-r--r-- | tests/test_filereporter.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_filereporter.py b/tests/test_filereporter.py index 227cc458..59335309 100644 --- a/tests/test_filereporter.py +++ b/tests/test_filereporter.py @@ -20,7 +20,7 @@ class FileReporterTest(UsingModulesMixin, CoverageTest): run_in_temp_dir = False - def test_filenames(self): + def test_filenames(self) -> None: acu = PythonFileReporter("aa/afile.py") bcu = PythonFileReporter("aa/bb/bfile.py") ccu = PythonFileReporter("aa/bb/cc/cfile.py") @@ -31,7 +31,7 @@ class FileReporterTest(UsingModulesMixin, CoverageTest): assert bcu.source() == "# bfile.py\n" assert ccu.source() == "# cfile.py\n" - def test_odd_filenames(self): + def test_odd_filenames(self) -> None: acu = PythonFileReporter("aa/afile.odd.py") bcu = PythonFileReporter("aa/bb/bfile.odd.py") b2cu = PythonFileReporter("aa/bb.odd/bfile.py") @@ -42,7 +42,7 @@ class FileReporterTest(UsingModulesMixin, CoverageTest): assert bcu.source() == "# bfile.odd.py\n" assert b2cu.source() == "# bfile.py\n" - def test_modules(self): + def test_modules(self) -> None: import aa import aa.bb import aa.bb.cc @@ -57,7 +57,7 @@ class FileReporterTest(UsingModulesMixin, CoverageTest): assert bcu.source() == "# bb\n" assert ccu.source() == "" # yes, empty - def test_module_files(self): + def test_module_files(self) -> None: import aa.afile import aa.bb.bfile import aa.bb.cc.cfile @@ -72,7 +72,7 @@ class FileReporterTest(UsingModulesMixin, CoverageTest): assert bcu.source() == "# bfile.py\n" assert ccu.source() == "# cfile.py\n" - def test_comparison(self): + def test_comparison(self) -> None: acu = FileReporter("aa/afile.py") acu2 = FileReporter("aa/afile.py") zcu = FileReporter("aa/zfile.py") @@ -83,7 +83,7 @@ class FileReporterTest(UsingModulesMixin, CoverageTest): assert acu < bcu and acu <= bcu and acu != bcu assert bcu > acu and bcu >= acu and bcu != acu - def test_zipfile(self): + def test_zipfile(self) -> None: sys.path.append("tests/zip1.zip") # Test that we can get files out of zipfiles, and read their source files. |