You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
435 B
25 lines
435 B
from pathlib import Path
|
|
|
|
import pytest
|
|
|
|
from jenkins_jobs.cli import entry
|
|
|
|
|
|
@pytest.fixture
|
|
def fixtures_dir():
|
|
return Path(__file__).parent / "fixtures"
|
|
|
|
|
|
@pytest.fixture
|
|
def default_config_file(fixtures_dir):
|
|
return str(fixtures_dir / "empty_builder.ini")
|
|
|
|
|
|
@pytest.fixture
|
|
def execute_jenkins_jobs():
|
|
def execute(args):
|
|
jenkins_jobs = entry.JenkinsJobs(args)
|
|
jenkins_jobs.execute()
|
|
|
|
return execute
|