Skip to content

chore: enable ruf rule in ruff config #365

chore: enable ruf rule in ruff config

chore: enable ruf rule in ruff config #365

GitHub Actions / Test Results failed Nov 30, 2023 in 0s

1 fail, 18 pass in 21s

19 tests  ±0   18 ✔️ ±0   21s ⏱️ -9s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     1 ±0 

Results for commit 759c062. ± Comparison against earlier commit 692b135.

Annotations

Check warning on line 0 in tests.helper.test_preprocessor

See this annotation in the file changed.

@github-actions github-actions / Test Results

test_set_mime_types (tests.helper.test_preprocessor) failed

artifacts/test-results/pytest-junit.xml [took 0s]
Raw output
assert 149 > 149
temporary_preprocessor = <class 'fuji_server.helper.preprocessor.Preprocessor'>
initial_mime_types_count = 149

    #x1B[37m@pytest#x1B[39;49;00m.mark.vcr#x1B[90m#x1B[39;49;00m
    #x1B[94mdef#x1B[39;49;00m #x1B[92mtest_set_mime_types#x1B[39;49;00m(temporary_preprocessor: Preprocessor, initial_mime_types_count) -> #x1B[94mNone#x1B[39;49;00m:#x1B[90m#x1B[39;49;00m
        num_types_before = initial_mime_types_count#x1B[90m#x1B[39;49;00m
    #x1B[90m#x1B[39;49;00m
        temporary_preprocessor.set_mime_types()#x1B[90m#x1B[39;49;00m
    #x1B[90m#x1B[39;49;00m
        #x1B[94mfrom#x1B[39;49;00m #x1B[04m#x1B[96mmimetypes#x1B[39;49;00m #x1B[94mimport#x1B[39;49;00m types_map#x1B[90m#x1B[39;49;00m
    #x1B[90m#x1B[39;49;00m
        num_types_after = #x1B[96mlen#x1B[39;49;00m(types_map)#x1B[90m#x1B[39;49;00m
>       #x1B[94massert#x1B[39;49;00m num_types_after > num_types_before#x1B[90m#x1B[39;49;00m
#x1B[1m#x1B[31mE       assert 149 > 149#x1B[0m

#x1B[1m#x1B[31mtests/helper/test_preprocessor.py#x1B[0m:133: AssertionError

Check notice on line 0 in .github

See this annotation in the file changed.

@github-actions github-actions / Test Results

19 tests found

There are 19 tests, see "Raw output" for the full list of tests.
Raw output
tests.api.test_urls ‑ test_all_metrics_returns_200
tests.api.test_urls ‑ test_schema_returns_200
tests.api.test_urls ‑ test_single_metric_returns_200
tests.api.test_urls ‑ test_ui_returns_200
tests.controllers.test_fair_check ‑ test_check_unique_metadata_identifier
tests.controllers.test_fair_check ‑ test_harvest_all_metadata
tests.functional.test_evaluation ‑ test_evaluation
tests.helper.test_preprocessor ‑ test_get_licenses
tests.helper.test_preprocessor ‑ test_retrieve_datacite_re3repos
tests.helper.test_preprocessor ‑ test_retrieve_default_namespaces
tests.helper.test_preprocessor ‑ test_retrieve_licenses
tests.helper.test_preprocessor ‑ test_retrieve_linkedvocabs
tests.helper.test_preprocessor ‑ test_retrieve_metadata_standards
tests.helper.test_preprocessor ‑ test_set_mime_types
tests.models.test_harvest ‑ test_from_dict
tests.models.test_harvest ‑ test_set_auth_token
tests.models.test_harvest ‑ test_set_auth_token_type
tests.models.test_harvest ‑ test_set_object_identifier
tests.models.test_harvest ‑ test_to_dict