mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-10 01:16:12 +02:00
move test data to a data subfolder
This commit is contained in:
parent
20151ff801
commit
a1d14a71dd
5 changed files with 6 additions and 7 deletions
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 100 KiB |
|
@ -6,8 +6,6 @@ import os
|
|||
from jrnl.Journal import Journal
|
||||
import shutil
|
||||
|
||||
# TODO: move test data to a data folder
|
||||
|
||||
class TestClasses(unittest.TestCase):
|
||||
"""Test the behavior of the classes.
|
||||
|
||||
|
@ -16,7 +14,8 @@ class TestClasses(unittest.TestCase):
|
|||
"""
|
||||
|
||||
def setUp(self):
|
||||
self.test_data_path = os.path.dirname(os.path.abspath(__file__))
|
||||
self.test_data_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
|
||||
'test_data')
|
||||
self.config = {
|
||||
"timeformat": "%Y-%m-%d %H:%M",
|
||||
"encrypt": False,
|
||||
|
@ -50,7 +49,7 @@ class TestClasses(unittest.TestCase):
|
|||
|
||||
def test_pathsearch_regex(self):
|
||||
true_positive = ['/Volumes/dedan/bla.png',
|
||||
'/Users/dedan/projects/jrnl/tests/golden.jpg',
|
||||
'/Users/dedan/projects/jrnl/tests/test_data/golden.jpg',
|
||||
'/Volumes/dedan/test.png',
|
||||
'C:\\a\\windows\\file.png']
|
||||
false_positive = ['/Volumes/dedan/bla.blub',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue