Skip to content

Commit

Permalink
chore: fix enum
Browse files Browse the repository at this point in the history
  • Loading branch information
Paulo Henrique Cuchi committed Oct 17, 2020
1 parent 841c222 commit 29b3303
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 4 additions & 7 deletions enums.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
from enum import Enum


class GitHubActionsInput(Enum):
class GitHubActionsInput(str, Enum):
DATA_FILE = 'INPUT_DATA_FILE'
TEMPLATE = 'INPUT_TEMPLATE'
STRICT = 'INPUT_STRICT'
DATA_FORMAT = 'INPUT_DATA_FORMAT'
OUTPUT_FILE = 'INPUT_OUTPUT_FILE'
STRICT = 'INPUT_STRICT'
TEMPLATE = 'INPUT_TEMPLATE'
VARIABLES = 'INPUT_VARIABLES'

def __str__(self, *args, **kwargs):
return str(self.value)

6 changes: 5 additions & 1 deletion unit-tests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import unittest

# TODO: Tests.
class TestContext(unittest.TestCase):
pass

if __name__ == '__main__':
unittest.main()

0 comments on commit 29b3303

Please sign in to comment.