Permalink
Browse files

Minor fixes

  • Loading branch information...
1 parent 88fbc59 commit 4af025be4b5d23723cb1b723e397c870e774722b @l0b0 committed Oct 19, 2010
Showing with 6 additions and 7 deletions.
  1. +1 −1 qr2scad/qr2scad.py
  2. +5 −6 tests/tests.py
View
@@ -94,7 +94,7 @@ def qr2scad(stream):
qr_side = new_size
img_matrix = img.load()
-
+
result = ''
result += 'module qrcode() {\n'
View
@@ -40,7 +40,7 @@ def test_black_and_white(self):
'')
self.assertNotEqual(
result,
- 'module qrcode() {\n}\nqrcode();\n')
+ 'module qrcode() {\n}\nqrcode();')
def test_rgb(self):
@@ -51,19 +51,18 @@ def test_rgb(self):
'')
self.assertNotEqual(
result,
- 'module qrcode() {\n}\nqrcode();\n')
+ 'module qrcode() {\n}\nqrcode();')
def test_big(self):
"""Check that a big image gives output."""
- self.input_stream = open(EXAMPLE_BIG)
- result = qr2scad.qr2scad(self.input_stream)
+ result = qr2scad.qr2scad(open(EXAMPLE_BIG))
self.assertNotEqual(
result,
'')
self.assertNotEqual(
result,
- 'module qrcode() {\n}\nqrcode();\n')
+ 'module qrcode() {\n}\nqrcode();')
def test_equal(self):
@@ -79,7 +78,7 @@ def test_equal(self):
'')
self.assertNotEqual(
result_big,
- 'module qrcode() {\n}\nqrcode();\n')
+ 'module qrcode() {\n}\nqrcode();')
self.assertNotEqual(
result_bw,
'')

0 comments on commit 4af025b

Please sign in to comment.