mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
add missing attribute.
See https://github.com/shlomif/PySolFC/issues/129 .
This commit is contained in:
parent
b785d35e0b
commit
602f9ebc93
3 changed files with 14 additions and 0 deletions
|
@ -347,6 +347,7 @@ class GameDrag(NewStruct):
|
||||||
cards = attr.ib(factory=list)
|
cards = attr.ib(factory=list)
|
||||||
canshade_stacks = attr.ib(factory=list)
|
canshade_stacks = attr.ib(factory=list)
|
||||||
noshade_stacks = attr.ib(factory=list)
|
noshade_stacks = attr.ib(factory=list)
|
||||||
|
shadows = attr.ib(factory=list)
|
||||||
|
|
||||||
|
|
||||||
class Game(object):
|
class Game(object):
|
||||||
|
|
|
@ -37,6 +37,7 @@ print('ok 1 - imported')
|
||||||
for ver in PY_VERS:
|
for ver in PY_VERS:
|
||||||
for mod in [
|
for mod in [
|
||||||
'pysol_tests.acard_unit',
|
'pysol_tests.acard_unit',
|
||||||
|
'pysol_tests.game_drag',
|
||||||
'pysol_tests.hint',
|
'pysol_tests.hint',
|
||||||
'pysol_tests.import_file1',
|
'pysol_tests.import_file1',
|
||||||
'pysol_tests.latin1_conv_unit',
|
'pysol_tests.latin1_conv_unit',
|
||||||
|
|
12
tests/lib/pysol_tests/game_drag.py
Normal file
12
tests/lib/pysol_tests/game_drag.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# Written by Shlomi Fish, under the MIT Expat License.
|
||||||
|
|
||||||
|
import unittest
|
||||||
|
|
||||||
|
from pysollib.game import GameDrag
|
||||||
|
|
||||||
|
|
||||||
|
class MyTests(unittest.TestCase):
|
||||||
|
def test_shadows(self):
|
||||||
|
d = GameDrag()
|
||||||
|
d.shadows.append("test")
|
||||||
|
self.assertTrue(len(d.shadows))
|
Loading…
Add table
Reference in a new issue