blob: bcf124f0595614772e5ec0740e0460ae1b5f11c2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import json
from pathlib import Path
def test_stars_valid():
"""Validates that `bot/resources/stars.json` contains a list of strings."""
path = Path('bot', 'resources', 'stars.json')
content = path.read_text()
data = json.loads(content)
for name in data:
assert type(name) is str
|