-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from JordanWelsman/0.4-bugfixes
Merging now.
- Loading branch information
Showing
17 changed files
with
202 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Dunder attributes | ||
__version__ = "0.4.0" | ||
__version__ = "0.4.1" | ||
__author__ = "Jordan Welsman" | ||
__license__ = "MIT" | ||
__copyright__ = "Copyright 2020 Jordan Welsman" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Import submodule files so | ||
# classes and functions are usable at | ||
# 'from jutl.exceptions import _' level. | ||
from .emptypipeline import * | ||
from .invalidformatting import * | ||
from .missinginput import * | ||
|
||
# Only show functions specified in | ||
# submodule files to the outside world. | ||
__all__ = emptypipeline.__all__, invalidformatting.__all__, missinginput.__all__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Module imports | ||
|
||
# External class visibility | ||
__all__ = ['EmptyPipelineError'] | ||
|
||
class EmptyPipelineError(Exception): | ||
def __init__(self, message): | ||
self.message = message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Module imports | ||
|
||
# External class visibility | ||
__all__ = ['InvalidFormattingError'] | ||
|
||
class InvalidFormattingError(Exception): | ||
def __init__(self, message): | ||
self.message = message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Module imports | ||
|
||
# External class visibility | ||
__all__ = ['MissingInputError'] | ||
|
||
class MissingInputError(Exception): | ||
def __init__(self, message): | ||
self.message = message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#jutils/test/exceptions/test_emptypipeline.py | ||
from jutl.exceptions import EmptyPipelineError | ||
|
||
test_message = "Test message" | ||
def func(): | ||
raise EmptyPipelineError(test_message) | ||
|
||
class TestException(): | ||
def test_message(self): | ||
"Tests if the exception message is correct." | ||
exception = EmptyPipelineError(test_message) | ||
assert exception.message == test_message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#jutils/test/exceptions/test_invalidformatting.py | ||
from jutl.exceptions import InvalidFormattingError | ||
|
||
test_message = "Test message" | ||
def func(): | ||
raise InvalidFormattingError(test_message) | ||
|
||
class TestException(): | ||
def test_message(self): | ||
"Tests if the exception message is correct." | ||
exception = InvalidFormattingError(test_message) | ||
assert exception.message == test_message |
Oops, something went wrong.