Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / tools / lint / test / test_manifest_alpha.py
blob2e8e1a6c778f04b5ac439faba02609bc82a6fc87
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 import mozunit
6 LINTER = "test-manifest-alpha"
9 def test_very_out_of_order(lint, paths):
10 results = lint(paths("mochitest-very-out-of-order.ini"))
11 assert len(results) == 1
12 assert results[0].diff
15 def test_in_order(lint, paths):
16 results = lint(paths("mochitest-in-order.ini"))
17 assert len(results) == 0
20 def test_mostly_in_order(lint, paths):
21 results = lint(paths("mochitest-mostly-in-order.ini"))
22 assert len(results) == 1
23 assert results[0].diff
26 def test_other_ini_very_out_of_order(lint, paths):
27 """Test that an .ini file outside of the allowlist is ignored."""
28 results = lint(paths("other-ini-very-out-of-order.ini"))
29 assert len(results) == 0
32 if __name__ == "__main__":
33 mozunit.main()