Nickleaton / sudoku

0 stars 0 forks source link

Test234ojuxe - crash #228

Closed Nickleaton closed 1 year ago

Nickleaton commented 1 year ago

Traceback (most recent call last): File "C:\Users\nickl\AppData\Local\Programs\Python\Python311\Lib\unittest\case.py", line 57, in testPartExecutor yield File "C:\Users\nickl\AppData\Local\Programs\Python\Python311\Lib\unittest\case.py", line 623, in run self._callTestMethod(testMethod) File "C:\Users\nickl\AppData\Local\Programs\Python\Python311\Lib\unittest\case.py", line 579, in _callTestMethod if method() is not None: ^^^^^^^^ File "C:\Users\nickl\PycharmProjects\sudoku\tests\acceptance\acceptance_test.py", line 86, in test_all command.execute() File "C:\Users\nickl\PycharmProjects\sudoku\src\commands\composed_command.py", line 25, in execute item.execute() File "C:\Users\nickl\PycharmProjects\sudoku\src\commands\svg_command.py", line 52, in execute canvas.add(glyph.draw()) ^^^^^^^^^^^^ File "C:\Users\nickl\PycharmProjects\sudoku\src\glyphs\glyph.py", line 88, in draw group.add(glyph.draw()) ^^^^^^^^^^^^ File "C:\Users\nickl\PycharmProjects\sudoku\src\glyphs\glyph.py", line 321, in draw return Circle(transform=self.center.point.transform, r=self.percentage * config.drawing.cell_size, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\nickl\PycharmProjects\sudoku\venv\Lib\site-packages\svgwrite\shapes.py", line 80, in init self['r'] = r


  File "C:\Users\nickl\PycharmProjects\sudoku\venv\Lib\site-packages\svgwrite\base.py", line 166, in __setitem__
    self.validator.check_svg_attribute_value(self.elementname, key, value)
  File "C:\Users\nickl\PycharmProjects\sudoku\venv\Lib\site-packages\svgwrite\validator2.py", line 62, in check_svg_attribute_value
    self._check_svg_value(elementname, attributename, value)
  File "C:\Users\nickl\PycharmProjects\sudoku\venv\Lib\site-packages\svgwrite\validator2.py", line 79, in _check_svg_value
    raise TypeError("'%s' is not a valid value for attribute '%s' at svg-element <%s>." % (value, attributename, elementname))
TypeError: 'Coord(250.0, 750.0)' is not a valid value for attribute 'r' at svg-element .
Nickleaton commented 1 year ago

Fixed