def test_adds_reference_data(self, challenge_ready): c = challenge_ready.challenge with create_bundle(c) as (output_path, yaml, ls): name = has(yaml, ['phases', 1, 'datasets', 1, 'reference_data'], get_value=True) assert name in ls with zip(path.join(output_path, name)) as (z, ls): assert 'answer.txt' in ls assert 'metadata' in ls
def test_no_logo_works(self, challenge_ready): remove_logo(challenge_ready) with create_bundle(challenge_ready) as (output_path, yaml, ls): assert 'logo' not in yaml
def test_adds_logo(self, challenge_ready): with create_bundle(challenge_ready) as (output_path, yaml, ls): assert 'image' in yaml assert yaml['image'] in ls
def test_adds_reference_data(self, challenge_ready): with create_bundle(challenge_ready) as (output_path, yaml, ls): assert has(yaml, ['phases', 1, 'reference_data'])
def test_preserve_yaml_title(self, challenge_ready): with create_bundle(challenge_ready) as (output_path, yaml, ls): assert yaml['title'] == challenge_ready.challenge.title
def test_adds_documentations(self, challenge_ready): with create_bundle(challenge_ready) as (output_path, yaml, ls): assert set([x for x in ls if x.endswith('.html')]) == DEFAULT_DOCS
def test_adds_yaml(self, challenge_ready): with create_bundle(challenge_ready) as (output_path, yaml, ls): assert 'competition.yaml' in ls