Skip to content

Commit

Permalink
folder structure and build
Browse files Browse the repository at this point in the history
  • Loading branch information
JrtPec committed Dec 4, 2023
1 parent e6e28af commit 32e2f1b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 2 deletions.
Binary file modified .DS_Store
Binary file not shown.
File renamed without changes.
6 changes: 5 additions & 1 deletion src/openenergyid/main.py → openenergyid/main.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
if __name__ == '__main__':
def main():
print('Hello World!')
return 0

if __name__ == '__main__':
main()
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ classifiers = [
]

[project.urls]
homepage = "www.energyid.eu"
homepage = "www.energyid.eu"

[tool.hatch.version]
path = "openenergyid/__init__.py"
Binary file removed src/.DS_Store
Binary file not shown.
Empty file added tests/__init__.py
Empty file.
8 changes: 8 additions & 0 deletions tests/test_main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from openenergyid import __version__
from openenergyid.main import main

def test_version():
assert __version__ == '0.0.1'

def test_main():
assert main() == 0

0 comments on commit 32e2f1b

Please sign in to comment.