Пример #1
0
    def test_sort(self):
        fLOG(__file__,
             self._testMethodName,
             OutputPrint=__name__ == "__main__")

        mod_list = small_set() + sphinx_theme_set() + extended_set() + \
            ensae_set() + teachings_set()
        mod_list.sort()
        build_requirements(mod_list)
        k = [_.usage for _ in mod_list if _.usage is not None]
        k2 = list(sorted(_.usage for _ in mod_list if _.usage is not None))
        fLOG(k)
        fLOG(k2)
        assert k == k2
Пример #2
0
    def test_update_module(self):
        fLOG(__file__,
             self._testMethodName,
             OutputPrint=__name__ == "__main__")

        mod_list = small_set() + sphinx_theme_set() + extended_set() + \
            ensae_set() + teachings_set()
        res = build_requirements(mod_list)
        lines = res.split("\n")
        fLOG(len(lines))
        for i, line in enumerate(lines):
            fLOG(i, line)
        assert 'pep8' in res
        assert len(lines) >= 550
Пример #3
0
    def test_sort(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        mod_list = small_set() + sphinx_theme_set() + extended_set() + \
            ensae_set() + teachings_set()
        mod_list.sort()
        build_requirements(mod_list)
        k = [_.usage for _ in mod_list if _.usage is not None]
        k2 = list(sorted(_.usage for _ in mod_list if _.usage is not None))
        fLOG(k)
        fLOG(k2)
        assert k == k2
Пример #4
0
    def test_update_module(self):
        fLOG(
            __file__,
            self._testMethodName,
            OutputPrint=__name__ == "__main__")

        mod_list = small_set() + sphinx_theme_set() + extended_set() + \
            ensae_set() + teachings_set()
        res = build_requirements(mod_list)
        lines = res.split("\n")
        fLOG(len(lines))
        for i, line in enumerate(lines):
            fLOG(i, line)
        assert 'pep8' in res
        assert len(lines) >= 550