def test_can_parse_configuration_with_utf8(self): cfg_text = """ tests: - description: Testa a saúde da página. module: healthcheck.py class: HealthCheckTest test: test_healthcheck """ cfg = WightConfig(cfg_text) expect(cfg).not_to_be_null() expect(cfg.tests).to_length(1) expect(cfg.tests[0].description).to_equal("Testa a saúde da página.")
def test_can_parse_configuration_with_deps(self): cfg_text = """ tests: - module: healthcheck.py class: HealthCheckTest test: test_healthcheck deps: - request - six """ cfg = WightConfig(cfg_text) expect(cfg).not_to_be_null() expect(cfg.tests).to_length(1) expect(cfg.tests[0].deps).to_be_like(["request", "six"])
def test_can_parse_configuration(self): cfg_text = """ tests: - module: healthcheck.py class: HealthCheckTest test: test_healthcheck """ cfg = WightConfig(cfg_text) expect(cfg).not_to_be_null() expect(cfg.tests).to_length(1) expect(cfg.tests[0].module).to_equal("healthcheck.py") expect(cfg.tests[0].class_name).to_equal("HealthCheckTest") expect(cfg.tests[0].test_name).to_equal("test_healthcheck")