@@ -0,0 +1,1296 @@
+import yaml%0Aimport unittest%0Afrom lib.check_versions import *%0A%0A%0Adef test_setting_file():%0A    with open('tests/utils/settings.yaml', 'r') as file:%0A        settings = yaml.load(file)%0A    return settings%0A%0A%0Aclass TestRepositoryPackages(unittest.TestCase):%0A%0A    def test_get_from_requirements_as_txt(self):%0A%0A        check_versions = CheckVersions(test_setting_file())%0A        get_from_requirements = check_versions.get_from_requirements()%0A        expect_return = %22flask%5Cnrequests%5Cnpyyaml%5Cnawesome-slugify%5Cn%22%0A%0A        assert get_from_requirements == expect_return%0A%0A    def test_get_from_requirements_as_json(self):%0A        mock_test_setting_file = test_setting_file()%0A        mock_test_setting_file%5B%22PROJECT%22%5D%5B%22REQUIREMENTS_TYPE%22%5D = %22json%22%0A        mock_test_setting_file%5B%22PROJECT%22%5D%5B%22REQUIREMENTS_URL%22%5D = mock_test_setting_file%5B%22PROJECT%22%5D%5B%22REQUIREMENTS_URL%22%5D.replace(%22.txt%22, %22.json%22)%0A%0A        check_versions = CheckVersions(mock_test_setting_file)%0A        get_from_requirements = check_versions.get_from_requirements()%0A%0A        expect_return = %7B%0A            %22dependencias%22: %7B%0A                %22flask%22: %220.0.1%22,%0A                %22requests%22: %220.0.1%22,%0A                %22pyyaml%22: %220.0.1%22,%0A                %22awesome-slugify%22: %220.0.1%22%0A            %7D%0A        %7D%0A%0A        assert get_from_requirements == expect_return%0A

test of check_versions