40f23b6 Fix the handling of modulemd files with unicode characters.

37 files Authored by jkaluza 5 years ago, Committed by mprahl 5 years ago,
37 files changed. 122 lines added. 97 lines removed.
module_build_service/builder/KojiContentGenerator.py
file modified
+6 -6
module_build_service/scheduler/handlers/modules.py
file modified
+2 -1
module_build_service/utils/general.py
file modified
+12 -1
module_build_service/utils/submit.py
file modified
+3 -2
tests/__init__.py
file modified
+11 -10
tests/staged_data/bad.yaml
file modified
+1 -1
tests/staged_data/fakemodule.yaml
file modified
+1 -1
tests/staged_data/formatted_python3-no-components.yaml
file modified
+1 -1
tests/staged_data/formatted_testmodule-more-components.yaml
file modified
+1 -1
tests/staged_data/formatted_testmodule.yaml
file modified
+1 -1
tests/staged_data/includedmodules.yaml
file modified
+1 -1
tests/staged_data/nginx_mmd.yaml
file modified
+1 -1
tests/staged_data/platform.yaml
file modified
+1 -1
tests/staged_data/python3-no-components.yaml
file modified
+1 -1
tests/staged_data/testmodule-more-components.yaml
file modified
+1 -1
tests/staged_data/testmodule-no-base-module.yaml
file modified
+1 -1
tests/staged_data/testmodule-no-deps.yaml
file modified
+1 -1
tests/staged_data/testmodule-version-set.yaml
file modified
+1 -1
tests/staged_data/testmodule-with-filters.yaml
file modified
+1 -1
tests/staged_data/testmodule-wrong-stream.yaml
file modified
+1 -1
tests/staged_data/testmodule.yaml
file modified
+1 -1
tests/staged_data/testmodule_dependencies.yaml
file modified
+1 -1
tests/staged_data/testmodule_init.yaml
file modified
+1 -1
tests/staged_data/testmodule_mse.yaml
file modified
+1 -1
tests/staged_data/testmodule_platform_f290000.yaml
file modified
+1 -1
tests/staged_data/testmodule_v2.yaml
file modified
+1 -1
tests/test_build/test_build.py
file modified
+4 -3
tests/test_builder/test_koji.py
file modified
+7 -6
tests/test_builder/test_mock.py
file modified
+2 -1
tests/test_content_generator.py
file modified
+21 -19
tests/test_get_generator_json_expected_output.json
file modified
+3 -3
tests/test_get_generator_json_expected_output_with_log.json
file modified
+3 -3
tests/test_models/test_models.py
file modified
+3 -2
tests/test_resolver/test_db.py
file modified
+4 -3
tests/test_scheduler/test_module_init.py
file modified
+4 -3
tests/test_utils/test_utils.py
file modified
+13 -11
tests/test_views/test_views.py
file modified
+3 -2
    Fix the handling of modulemd files with unicode characters.
    
    This commit introduces new to_text_type helper method and calls it
    for return value of all mmd.dumps() calls. That way, we always
    end up with proper unicode string represntation on both python
    major versions.
    
    This commit also adds unicode character to description of all
    the yaml files we use in the tests so we can be sure MBS can
    handle unicode characters properly.
    
    This might be temporary fix, depending on the result of discussion
    at https://github.com/fedora-modularity/libmodulemd/issues/184.
    
        
file modified
+11 -10
file modified
+1 -1
file modified
+21 -19
file modified
+13 -11