Skip to content

Commit 405c096

Browse files
committed
bring back tests
1 parent f7e2e47 commit 405c096

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

tests/test_image_pipeline.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def create_and_validate(length, mode='raw', reversed=False):
3838

3939
with NamedTemporaryFile() as handle:
4040
name = handle.name
41-
print(name)
4241

4342
fields = {
4443
'index': IntField(),
@@ -69,9 +68,7 @@ def create_and_validate(length, mode='raw', reversed=False):
6968
if mode == 'raw':
7069
assert_that(ch.all((image == (i % 255)).reshape(-1))).is_true()
7170
else:
72-
print('Here')
7371
assert_that(ch.all((image == (i % 255)).reshape(-1))).is_true()
74-
print('Here 2', ch.all((image == (i % 255)).reshape(-1)))
7572

7673
def make_and_read_cifar_subset(length):
7774
my_dataset = Subset(CIFAR10(root='/tmp', train=True, download=True), range(length))
@@ -93,14 +90,14 @@ def make_and_read_cifar_subset(length):
9390
for index, images in loader:
9491
pass
9592

96-
# def test_cifar_subset():
97-
# make_and_read_cifar_subset(200)
93+
def test_cifar_subset():
94+
make_and_read_cifar_subset(200)
9895

99-
# def test_simple_raw_image_pipeline():
100-
# create_and_validate(500, 'raw', False)
96+
def test_simple_raw_image_pipeline():
97+
create_and_validate(500, 'raw', False)
10198

102-
# def test_simple_raw_image_pipeline_rev():
103-
# create_and_validate(500, 'raw', True)
99+
def test_simple_raw_image_pipeline_rev():
100+
create_and_validate(500, 'raw', True)
104101

105102
def test_simple_jpg_image_pipeline():
106103
create_and_validate(500, 'jpg', False)

0 commit comments

Comments
 (0)