Add shared folder

This commit is contained in:
Alan Pryor 2019-05-19 11:52:41 -04:00
parent 207adab0fc
commit 9b687687f2
4 changed files with 13 additions and 0 deletions

0
app/shared/__init__.py Normal file
View File

View File

View File

@ -0,0 +1,6 @@
class QueryService:
'''An example of a service that is shared'''
@staticmethod
def execute(query):
return 'Success'

View File

@ -0,0 +1,7 @@
from .service import QueryService
def test_execute():
result = QueryService.execute('a complicated query')
assert result == 'Success'