Commit 5a48f365 authored by José Henrique's avatar José Henrique
Browse files

Merge branch 'master' into 'master'

validator: Don't check for wiki yaml

See merge request !2
parents 263f81ff b9d53bca
......@@ -7,7 +7,6 @@ import operator
os.chdir('official_devices')
SUGGESTIONS = []
ALLOWED_VERSIONS = ['eleven', 'ten', 'ten_plus', 'pie', 'pie_plus']
WIKI_BASE_URL = 'https://raw.githubusercontent.com/PixelExperience/wiki/master/_data/devices'
def test_integrity_devices():
......@@ -35,10 +34,6 @@ def test_integrity_devices():
if not os.path.isfile(f"images/{codename}.png"):
SUGGESTIONS.append(
f"images/{codename}.png not found for codename {codename} in devices.json for device index value {device_index}")
yaml = requests.head(f"{WIKI_BASE_URL}/{codename}.yml")
if yaml.status_code != 200:
SUGGESTIONS.append(
f"Wiki YAML not found for codename {codename} in devices.json for device index value {device_index}")
if 'supported_versions' not in device:
SUGGESTIONS.append(
......
Supports Markdown
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