Change inconsistent api naming
This commit is contained in:
parent
162815b5ba
commit
85250f1c5f
3 changed files with 6 additions and 6 deletions
|
@ -167,7 +167,7 @@ class ClojureFileHandler(FileHandler):
|
|||
clj_file.truncate()
|
||||
|
||||
|
||||
class SystemAPI():
|
||||
class SystemApi():
|
||||
|
||||
def __init__(self):
|
||||
self.stdout = [""]
|
||||
|
@ -192,7 +192,7 @@ class SystemAPI():
|
|||
class GitApi():
|
||||
|
||||
def __init__(self):
|
||||
self.system_api = SystemAPI()
|
||||
self.system_api = SystemApi()
|
||||
|
||||
def get_latest_n_commits(self, n: int):
|
||||
self.system_api.run_checked(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from pathlib import Path
|
||||
from src.main.python.ddadevops.release_mixin.infrastructure_api import SystemAPI
|
||||
from src.main.python.ddadevops.release_mixin.infrastructure_api import SystemApi
|
||||
|
||||
|
||||
class Helper():
|
||||
|
@ -9,5 +9,5 @@ class Helper():
|
|||
self.TEST_FILE_PATH = self.TEST_FILE_ROOT / self.TEST_FILE_NAME
|
||||
|
||||
def copy_files(self, source: Path, target: Path):
|
||||
api = SystemAPI()
|
||||
api = SystemApi()
|
||||
api.run_checked('cp', source, target)
|
|
@ -1,4 +1,4 @@
|
|||
class MockSystemAPI():
|
||||
class MockSystemApi():
|
||||
|
||||
def __init__(self):
|
||||
self.stdout = [""]
|
||||
|
@ -14,7 +14,7 @@ class MockSystemAPI():
|
|||
class MockGitApi():
|
||||
|
||||
def __init__(self, commit_string = ""):
|
||||
self.system_api = MockSystemAPI()
|
||||
self.system_api = MockSystemApi()
|
||||
self.get_latest_commit_count = 0
|
||||
self.commit_string = commit_string
|
||||
self.tag_annotated_count = 0
|
||||
|
|
Loading…
Reference in a new issue