Bug 1448417 - [mozlint] Rename test_filterpaths.py to test_pathutils.py, r=rwood
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Thu, 20 Sep 2018 20:27:45 +0000
changeset 437704 545de0d5b961f452953ae951cca4974dbb84ba16
parent 437703 98b7811a0baee813fd14000e04127f58596d0e81
child 437705 35c033207fa3f387ade88d077603705c5931b65b
push id108133
push usercbrindusan@mozilla.com
push dateFri, 21 Sep 2018 17:33:11 +0000
treeherdermozilla-inbound@1879856ca1ab [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrwood
bugs1448417
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1448417 - [mozlint] Rename test_filterpaths.py to test_pathutils.py, r=rwood This makes this test match all the other tests (which are named after the module they are testing). Also rename the test function to 'test_filterpaths'. Differential Revision: https://phabricator.services.mozilla.com/D6410
python/mozlint/test/python.ini
python/mozlint/test/test_filterpaths.py
python/mozlint/test/test_pathutils.py
--- a/python/mozlint/test/python.ini
+++ b/python/mozlint/test/python.ini
@@ -1,10 +1,10 @@
 [DEFAULT]
 subsuite = mozlint, os == "linux"
 skip-if = python == 3
 
 [test_cli.py]
-[test_filterpaths.py]
 [test_formatters.py]
 [test_parser.py]
+[test_pathutils.py]
 [test_roller.py]
 [test_types.py]
rename from python/mozlint/test/test_filterpaths.py
rename to python/mozlint/test/test_pathutils.py
--- a/python/mozlint/test/test_filterpaths.py
+++ b/python/mozlint/test/test_pathutils.py
@@ -93,17 +93,17 @@ TEST_CASES = (
         'include': ['**/*.py'],
         'exclude': ['**/c.py', 'subdir1/subdir3'],
         'expected': ['a.py', 'subdir1/b.py'],
     },
 )
 
 
 @pytest.mark.parametrize('test', TEST_CASES)
-def test_include_exclude(filterpaths, test):
+def test_filterpaths(filterpaths, test):
     expected = test.pop('expected')
 
     paths = filterpaths(**test)
     assert_paths(paths, expected)
 
 
 if __name__ == '__main__':
     mozunit.main()