Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Close GH-5
Browse files Browse the repository at this point in the history
  • Loading branch information
dksmiffs committed Jun 20, 2020
1 parent 8bc2a25 commit dc22649
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 50 deletions.
2 changes: 1 addition & 1 deletion src/tuulbachs/exception.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
exceptions.py
exception.py
==========================
This module contains the set of tuulbachs' exceptions.
"""
Expand Down
14 changes: 0 additions & 14 deletions src/tuulcli/cli_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,3 @@ class CliColor:
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'


# -----
def main():
print(f"{CliColor.HEAD}header{CliColor.ENDC}")
print(f"{CliColor.GREEN}ok, green{CliColor.ENDC}")
print(f"{CliColor.WARN}warning{CliColor.ENDC}")
print(f"{CliColor.FAIL}failblog{CliColor.ENDC}")
print(f"{CliColor.BOLD}bold{CliColor.ENDC}")


# -----
if '__main__' == __name__:
main()
10 changes: 0 additions & 10 deletions src/tuuldevops/pipeline_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,3 @@ def major_step(title, description):
"""
print(f'{CliColor.HEAD}{CliColor.BOLD}{title}: ' +
f'{CliColor.ENDC}{description}')


# -----
def main():
major_step('Important step', 'kicking things off...')


# -----
if '__main__' == __name__:
main()
11 changes: 0 additions & 11 deletions src/tuuldevops/tag_current_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,3 @@ def tag_product_version(conf_filename):
given in conf_filename
"""
tag_current_signed(emit_version(conf_filename))


# -----
def main():
# Show example usage
tag_product_version('../version.yaml')


# -----
if '__main__' == __name__:
main()
11 changes: 0 additions & 11 deletions src/tuuldevops/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,3 @@ def update_product_version(conf_filename, new_ver):
Write a new_ver as the new value for the 'version' key in the conf_filename
"""
update_value(conf_filename, 'version', new_ver)


# -----
def main():
# Show example usage
update_product_version('../version.yaml', '0.0.0')


# -----
if '__main__' == __name__:
main()
8 changes: 7 additions & 1 deletion tests/tuulbachs/exception_test.py
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
import tuulbachs.exception
from tuulbachs.exception import TuulError


def test_TuulError():
a = TuulError()
b = TuulError('with a message')
assert True;
7 changes: 6 additions & 1 deletion tests/tuuldevops/pipeline_steps_test.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
import tuuldevops.pipeline_steps
from tuuldevops.pipeline_steps import major_step


def test_major_step():
major_step('a title', 'a description')
assert True
9 changes: 9 additions & 0 deletions tests/tuuldevops/tag_current_version_test.py
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
import tuuldevops.tag_current_version


def test_fnname(mocker):
mocker.patch('tuuldevops.tag_current_version.tag_current_signed')
mocker.patch('tuuldevops.tag_current_version.emit_version')
fname = 'whatevs'
tuuldevops.tag_current_version.tag_product_version(fname)
tuuldevops.tag_current_version.emit_version.assert_called_once_with(fname)
tuuldevops.tag_current_version.tag_current_signed.assert_called_once()
2 changes: 1 addition & 1 deletion version.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# tuulbachs-formatted version file
product_name: tuulbachs
version: 0.7.8
version: 0.8.0

0 comments on commit dc22649

Please sign in to comment.