Skip to content

Commit

Permalink
easier for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
justquick committed Dec 5, 2021
1 parent 74477ad commit 34987ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
9 changes: 4 additions & 5 deletions pdf12step/tests/test_templating.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

from pdf12step.templating import slugify, Context

DIR = path.dirname(__file__)
TEMPLATE_DIR = path.join(DIR, 'templates')
CONFIG_FILE = path.join(DIR, 'test.config.yml')
DATA_DIR = path.join(path.dirname(__file__), 'data')
CONFIG_FILE = path.join(DATA_DIR, 'test.config.yml')


def test_slugify():
Expand All @@ -19,14 +18,14 @@ def test_slugify():
def test_template():
ctx = Context({
'config': [CONFIG_FILE],
'template_dirs': [TEMPLATE_DIR],
'template_dirs': [DATA_DIR],
'title': 'My Test Title',
'mycodes': ['A', 'B', 'C'],
})
content = ctx.render('test.txt')
for part in [
'my-test-title',
TEMPLATE_DIR,
DATA_DIR,
'A BB',
'Test Author Intergroup'
]:
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
'templates/includes/*',
'templates/includes/sections/*',
'tests/data/*',
'tests/templates/*',
]
},
packages=find_packages(),
Expand Down

0 comments on commit 34987ec

Please sign in to comment.