Skip to content

Commit

Permalink
🚚 Restructure tests
Browse files Browse the repository at this point in the history
  • Loading branch information
garlontas committed Dec 30, 2023
1 parent 92bda09 commit f821a48
Show file tree
Hide file tree
Showing 32 changed files with 10 additions and 10 deletions.
Empty file added tests/_conditions/__init__.py
Empty file.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pylint: disable=wildcard-import,too-many-instance-attributes,unused-wildcard-import

from date_test import DateTest
from _conditions.date_test import DateTest
from pystreamapi.conditions import equal_to, not_equal_to, between, not_between
from pystreamapi.conditions.date import *

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# pylint: disable=wildcard-import,too-many-instance-attributes,unused-wildcard-import

from date_test import DateTest
from _conditions.date_test import DateTest
from pystreamapi.conditions import equal_to, not_equal_to, between, not_between
from pystreamapi.conditions.date import *

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file added tests/_itertools/__init__.py
Empty file.
File renamed without changes.
Empty file added tests/_lazy/__init__.py
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_process.py → tests/_lazy/test_process.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest

from helper import TestHelper
from _lazy.helper import TestHelper
from pystreamapi._lazy.process import Process


Expand Down
2 changes: 1 addition & 1 deletion tests/test_queue.py → tests/_lazy/test_queue.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest import TestCase

from helper import TestHelper
from _lazy.helper import TestHelper
from pystreamapi._lazy.process import Process
from pystreamapi._lazy.queue import ProcessQueue

Expand Down
Empty file added tests/_loaders/__init__.py
Empty file.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from unittest import TestCase
from unittest.mock import patch, mock_open

from file_test import OPEN, PATH_EXISTS, PATH_ISFILE
from _loaders.file_test import OPEN, PATH_EXISTS, PATH_ISFILE
from pystreamapi.loaders import csv

file_content = """
Expand Down Expand Up @@ -70,4 +70,4 @@ def test_csv_loader_with_invalid_path(self):

def test_csv_loader_with_no_file(self):
with self.assertRaises(ValueError):
csv('./')
csv('../')
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from unittest import TestCase
from unittest.mock import patch, mock_open

from file_test import OPEN, PATH_EXISTS, PATH_ISFILE
from _loaders.file_test import OPEN, PATH_EXISTS, PATH_ISFILE
from pystreamapi.loaders import json

file_content = """
Expand Down Expand Up @@ -55,7 +55,7 @@ def test_json_loader_with_invalid_path(self):

def test_json_loader_with_no_file(self):
with self.assertRaises(ValueError):
json('./')
json('../')

def test_json_loader_from_string(self):
data = json(file_content, read_from_src=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from unittest.mock import patch, mock_open
from xml.etree.ElementTree import ParseError

from file_test import OPEN, PATH_EXISTS, PATH_ISFILE
from _loaders.file_test import OPEN, PATH_EXISTS, PATH_ISFILE
from pystreamapi.loaders import xml

file_content = """
Expand Down Expand Up @@ -90,7 +90,7 @@ def test_xml_loader_with_invalid_path(self):

def test_xml_loader_with_no_file(self):
with self.assertRaises(ValueError):
xml('./')
xml('../')

def test_xml_loader_from_string(self):
data = xml(file_content, read_from_src=True)
Expand Down
Empty file added tests/_parallel/__init__.py
Empty file.
File renamed without changes.
Empty file added tests/_streams/__init__.py
Empty file.
Empty file.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f821a48

Please sign in to comment.