mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
Initial text is in "<testName>.py" and expected result is in "<testName>_after.py". Previously they were called "before<testName>.py" and "after<testName>.py" which was very inconvenient, because these files were too far away from each other and expected data came first.
16 lines
436 B
Python
16 lines
436 B
Python
class A:
|
|
def __init__(self, *args, **kwargs):
|
|
self.uses_remaining_this_turn = None
|
|
self.effects = None
|
|
|
|
def foo(self):
|
|
if self.can_act<caret>ivate():
|
|
if self.effect_queue is None:
|
|
self.effect_queue = list(self.effects)
|
|
for effect in self.effect_queue:
|
|
effect.activate(source, targets)
|
|
self.effect_queue = None
|
|
self.uses_remaining_this_turn -= 1
|
|
|
|
def can_activate(self):
|
|
pass |