Skip to content

Commit

Permalink
README and command line for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpoelen committed Jan 24, 2022
1 parent be1e42a commit 27c1cb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Run tests

python3 -m unittest discover tests
6 changes: 1 addition & 5 deletions tests/test_packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
import unittest
import os
import sys

dir_path = os.path.dirname(os.path.realpath(__file__))

sys.path.append(os.path.dirname(dir_path))
import packager

class TestPackager(unittest.TestCase):
Expand All @@ -26,7 +22,7 @@ def test_replace_dict_all(self):

def test_read_and_update_config(self):
config = packager.read_and_update_config(
f'{dir_path}/data/config1', {'DIST_NAME':'debian', 'DIST_ID':'squeeze'})
'tests/data/config1', {'DIST_NAME':'debian', 'DIST_ID':'squeeze'})
self.assertEqual(config, {
'DIST_ID': 'squeeze',
'DIST_NAME': 'debian',
Expand Down

0 comments on commit 27c1cb2

Please sign in to comment.