Test against default package names

We don't want to allow any overrides from third-party packages,
so actively test against that.

I do not know whether the package list is up to date. I stashed this
in 2015 and only added Rust.
parent 560deea0
......@@ -168,6 +168,20 @@ class TestContainer(object):
# tuple of (prev_name, include, name); prev_name for case sensitivity
cls.previous_package_names = CaseInsensitiveDict()
# Default packages for ST2 and ST3 are largely the same,
# except for Pascal and Rust
# which only ship in ST3
default_packages = (
'ActionScript', 'AppleScript', 'ASP', 'Batch File',
'C#', 'C++', 'Clojure', 'Color Scheme - Default', 'CSS', 'D', 'Default',
'Diff', 'Erlang', 'Go', 'Graphviz', 'Groovy', 'Haskell', 'HTML', 'Java',
'JavaScript', 'Language - English', 'LaTeX', 'Lisp', 'Lua', 'Makefile',
'Markdown', 'Matlab', 'Objective-C', 'OCaml', 'Pascal', 'Perl', 'PHP',
'Python', 'R', 'Rails', 'Regular Expressions', 'RestructuredText',
'Ruby', 'Rust', 'Scala', 'ShellScript', 'SQL', 'TCL', 'Text', 'Textile',
'Theme - Default', 'Vintage', 'XML', 'YAML'
)
rel_b_reg = r'''^ (https:// github\.com/ [^/]+/ [^/]+
|https:// bitbucket\.org/ [^/]+/ [^/]+
) $'''
......@@ -341,6 +355,8 @@ class TestContainer(object):
self.assertFalse(name.startswith('.'), 'Package names may not start '
'with a dot')
self.assertNotIn(name, self.default_packages)
if 'details' not in data:
for key in ('name', 'homepage', 'author', 'releases'):
self.assertIn(key, data, '%r is required if no "details" URL '
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment