Files
jobboard/tests/test_prep_hosts_workable.py

19 lines
701 B
Python

"""Workable's word tables for prep: the host's own words, lowercased, and what they mean."""
from __future__ import annotations
import importlib
workable = importlib.import_module("app.prep.hosts.workable")
def test_workplace_words_read() -> None:
assert workable.REMOTE == {"remote": "remote", "hybrid": "hybrid", "on_site": "onsite"}
def test_type_words_read() -> None:
assert workable.EMPLOYMENT == {"full": "full_time", "part": "part_time",
"contract": "contract", "temporary": "temporary",
"internship": "internship"}
assert "volunteer" not in workable.EMPLOYMENT # an unknown word is prep's to report