Beispiel #1
0
 def test_tox_enable_tests(
     self,
     tmp_pathplus: PathPlus,
     demo_environment,
     advanced_file_regression: AdvancedFileRegressionFixture,
     enable_tests,
 ):
     self.set_globals(demo_environment, enable_tests=enable_tests)
     make_tox(tmp_pathplus, demo_environment)
     advanced_file_regression.check_file(tmp_pathplus / "tox.ini")
Beispiel #2
0
 def test_tox_mypy_version(
     self,
     tmp_pathplus: PathPlus,
     demo_environment,
     advanced_file_regression: AdvancedFileRegressionFixture,
     mypy_version,
 ):
     self.set_globals(demo_environment, mypy_version=mypy_version)
     make_tox(tmp_pathplus, demo_environment)
     advanced_file_regression.check_file(tmp_pathplus / "tox.ini")
Beispiel #3
0
 def test_tox_stubs_package(
     self,
     tmp_pathplus: PathPlus,
     demo_environment,
     advanced_file_regression: AdvancedFileRegressionFixture,
     stubs_package,
 ):
     self.set_globals(demo_environment, stubs_package=stubs_package)
     make_tox(tmp_pathplus, demo_environment)
     advanced_file_regression.check_file(tmp_pathplus / "tox.ini")
Beispiel #4
0
    def test_make_tox_matrix(
        self,
        tmp_pathplus: PathPlus,
        demo_environment,
        advanced_file_regression: AdvancedFileRegressionFixture,
    ):
        self.set_globals(demo_environment,
                         enable_docs=False,
                         enable_devmode=False,
                         py_modules=["hello_world"])
        demo_environment.globals["third_party_version_matrix"] = {
            "attrs": ["19.3", "20.1", "20.2", "latest"]
        }

        make_tox(tmp_pathplus, demo_environment)
        advanced_file_regression.check_file(tmp_pathplus / "tox.ini")