Пример #1
0
    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
Пример #2
0
    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
Пример #3
0
 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
Пример #4
0
 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'])
Пример #5
0
 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
Пример #6
0
 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
Пример #7
0
 def test_adds_yaml(self, challenge_ready):
     with create_bundle(challenge_ready) as (output_path, yaml, ls):
         assert 'competition.yaml' in ls