Пример #1
0
    def check(dirname):
        spec = _load_requirements_txt(os.path.join(dirname,
                                                   "requirements.txt"))

        assert spec is not None
        assert spec.name == 'default'
        assert spec.pip_packages == ('a', 'b', 'c', 'd')
Пример #2
0
    def check(filename):
        spec = _load_requirements_txt(filename)

        assert spec is not None
        assert spec.name == 'default'
        assert spec.conda_packages == ()
        assert spec.channels == ()
        assert spec.pip_packages == ('MyApp', 'Framework==0.9.4', 'Library>=0.2',
                                     'svn+http://myrepo/svn/MyThing#egg=MyThing')
        assert spec.pip_package_names_set == set(('MyApp', 'Framework', 'Library', 'MyThing'))

        assert spec.logical_hash == '784ba385d4cd468756e3cbc57f33e97afdc38059'