Skip to content
Permalink
Browse files

Modified test_spec_link of test_tidy for packaged tidy

  • Loading branch information...
askeing committed Apr 16, 2016
1 parent 22d991d commit 27bac667b21a89a717408b36b14c78d0bdd19a9c
Showing with 4 additions and 81 deletions.
  1. +4 −3 python/tidy/servo_tidy_tests/test_tidy.py
  2. +0 −78 python/tidy/servo_tidy_tests/tidy_self_test.py
@@ -11,10 +11,11 @@
import unittest
from servo_tidy import tidy

base_path = 'servo_tidy_tests/' if os.path.exists('servo_tidy_tests/') else 'python/tidy/servo_tidy_tests/'


def iterFile(name):
path = 'servo_tidy_tests/' if os.path.exists('servo_tidy_tests/') else 'python/tidy/servo_tidy_tests/'
return iter([os.path.join(path, name)])
return iter([os.path.join(base_path, name)])


class CheckTidiness(unittest.TestCase):
@@ -62,7 +63,7 @@ def test_rust(self):
self.assertEqual('use &str instead of &String', errors.next()[2])

def test_spec_link(self):
tidy.spec_base_path = "python/tidy_self_test/"
tidy.spec_base_path = base_path
errors = tidy.collect_errors_for_files(iterFile('speclink.rs'), [], [tidy.check_spec])
self.assertEqual('method declared in webidl is missing a comment with a specification link', errors.next()[2])

This file was deleted.

Oops, something went wrong.

0 comments on commit 27bac66

Please sign in to comment.
You can’t perform that action at this time.