Skip to content

Commit

Permalink
Solved the issue with imports so that both convert_from_file and conv…
Browse files Browse the repository at this point in the history
…ert_from_text can be used wihtout importing paml2html.paml2html as well as tests work
  • Loading branch information
PokerFacowaty committed Apr 6, 2023
1 parent 7e190fb commit 663cfc7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
[tool.poetry]
name = "paml2html"
version = "0.1.0"
version = "0.1.1"
description = "[P]oker's M[a]de-up [M]arkup [L]anguage to HTML converter"
authors = ["PokerFacowaty <[email protected]>"]
license = "MIT"
readme = "README.md"
packages = [
{ include = "paml2html", from = "src" },
]

[tool.poetry.dependencies]
python = "^3.9"
Expand Down
3 changes: 3 additions & 0 deletions src/paml2html/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .paml2html import convert_from_file, convert_from_text

__all__ = ["convert_from_file", "convert_from_text"]
2 changes: 1 addition & 1 deletion tests/test_identify_and_create_elements.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from src.paml2html import paml2html
from paml2html import paml2html
import unittest

'''These tests all test the identify_element function (it doesn't return
Expand Down
2 changes: 1 addition & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from src.paml2html import paml2html
from paml2html import paml2html
from pathlib import Path
import unittest

Expand Down
2 changes: 1 addition & 1 deletion tests/test_text_formatting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from src.paml2html import paml2html
from paml2html import paml2html
import unittest

'''These tests start with simple test formatting, then move on to obscure tests
Expand Down

0 comments on commit 663cfc7

Please sign in to comment.