Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🚚 Restructure tests #87

Merged
merged 1 commit into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added tests/_conditions/__init__.py
Empty file.
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
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.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading