Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(129)  |  Call(82)  |  Derive(0)  |  Import(47)

src/e/o/Eos-HEAD/tests/attribute_calculator/state/test_state.py   Eos(Download)
from eos.const.eos import State, Location, Context, Operator
from eos.const.eve import EffectCategory
from eos.data.cache_object.modifier import Modifier
from eos.tests.attribute_calculator.attrcalc_testcase import AttrCalcTestCase
from eos.tests.attribute_calculator.environment import IndependentItem
        src_attr3 = self.ch.attribute(attribute_id=4)
        src_attr4 = self.ch.attribute(attribute_id=5)
        modifier_off = Modifier()
        modifier_off.state = State.offline
        modifier_off.context = Context.local
        modifier_off.filter_type = None
        modifier_off.filter_value = None
        modifier_on = Modifier()
        modifier_on.state = State.online
        modifier_on.context = Context.local
        modifier_on.filter_type = None
        modifier_on.filter_value = None
        modifier_act = Modifier()
        modifier_act.state = State.active
        modifier_act.context = Context.local
        modifier_act.filter_type = None
        modifier_act.filter_value = None
        modifier_over = Modifier()
        modifier_over.state = State.overload
        modifier_over.context = Context.local

src/e/o/Eos-HEAD/tests/attribute_calculator/special/test_transition.py   Eos(Download)
from eos.const.eos import State, Location, Context, FilterType, Operator
from eos.const.eve import EffectCategory
from eos.data.cache_object.modifier import Modifier
from eos.tests.attribute_calculator.attrcalc_testcase import AttrCalcTestCase
from eos.tests.attribute_calculator.environment import Fit, IndependentItem, ShipItem
        src_attr = self.ch.attribute(attribute_id=1)
        tgt_attr = self.ch.attribute(attribute_id=2)
        modifier = Modifier()
        modifier.state = State.offline
        modifier.context = Context.local
        tgt_attr2 = cache_handler2.attribute(attribute_id=2, max_attribute_id=333)
        cache_handler2.attribute(attribute_id=333, default_value=500)
        modifier = Modifier()
        modifier.state = State.offline
        modifier.context = Context.local

src/e/o/Eos-HEAD/tests/attribute_calculator/special/test_rounding.py   Eos(Download)
from eos.const.eos import State, Location, Context, FilterType, Operator
from eos.const.eve import Attribute, EffectCategory
from eos.data.cache_object.modifier import Modifier
from eos.tests.attribute_calculator.attrcalc_testcase import AttrCalcTestCase
from eos.tests.attribute_calculator.environment import IndependentItem
    def test_cpu_modified(self):
        src_attr = self.ch.attribute(attribute_id=1)
        tgt_attr = self.ch.attribute(attribute_id=Attribute.cpu)
        modifier = Modifier()
        modifier.state = State.offline

src/e/o/Eos-HEAD/tests/attribute_calculator/special/test_cap.py   Eos(Download)
from eos.const.eos import State, Location, Context, FilterType, Operator
from eos.const.eve import EffectCategory
from eos.data.cache_object.modifier import Modifier
from eos.tests.attribute_calculator.attrcalc_testcase import AttrCalcTestCase
from eos.tests.attribute_calculator.environment import IndependentItem, ShipItem
        # Just to make sure cap is applied to final value, not
        # base, make some basic modification modifier
        modifier = Modifier()
        modifier.state = State.offline
        modifier.context = Context.local
    def test_cap_modified(self):
        # Make sure that holder's own specified attribute
        # value is taken as cap, and it's taken with all
        # modifications applied onto it
        modifier = Modifier()
        self.assertAlmostEqual(holder.attributes[self.capped_attr.id], 2)
        # Add something which changes capping attribute
        modifier = Modifier()
        modifier.state = State.offline
        modifier.context = Context.local

src/e/o/Eos-HEAD/tests/attribute_calculator/modifier_target_attribute/test_target.py   Eos(Download)
from eos.const.eos import State, Location, Context, Operator
from eos.const.eve import EffectCategory
from eos.data.cache_object.modifier import Modifier
from eos.tests.attribute_calculator.attrcalc_testcase import AttrCalcTestCase
from eos.tests.attribute_calculator.environment import IndependentItem
        tgt_attr3 = self.ch.attribute(attribute_id=3)
        src_attr = self.ch.attribute(attribute_id=4)
        modifier1 = Modifier()
        modifier1.state = State.offline
        modifier1.context = Context.local
        modifier1.filter_type = None
        modifier1.filter_value = None
        modifier2 = Modifier()
        modifier2.state = State.offline
        modifier2.context = Context.local

src/e/o/Eos-HEAD/tests/attribute_calculator/modifier_source_attribute/test_attr_absent.py   Eos(Download)
from eos.const.eos import State, Location, Context, Operator
from eos.const.eve import EffectCategory
from eos.data.cache_object.modifier import Modifier
from eos.tests.attribute_calculator.attrcalc_testcase import AttrCalcTestCase
from eos.tests.attribute_calculator.environment import IndependentItem
    def test_combination(self):
        tgt_attr = self.ch.attribute(attribute_id=1)
        abs_attr = self.ch.attribute(attribute_id=2)
        src_attr = self.ch.attribute(attribute_id=3)
        invalid_modifier = Modifier()
        invalid_modifier.filter_type = None
        invalid_modifier.filter_value = None
        valid_modifier = Modifier()
        valid_modifier.state = State.offline
        valid_modifier.context = Context.local

src/e/o/Eos-HEAD/tests/attribute_calculator/modifier_operator/test_unknown.py   Eos(Download)
from eos.const.eos import State, Location, Context, Operator
from eos.const.eve import EffectCategory
from eos.data.cache_object.modifier import Modifier
from eos.tests.attribute_calculator.attrcalc_testcase import AttrCalcTestCase
from eos.tests.attribute_calculator.environment import IndependentItem
        tgt_attr = self.ch.attribute(attribute_id=1)
        src_attr = self.ch.attribute(attribute_id=2)
        invalid_modifier = Modifier()
        invalid_modifier.state = State.offline
        invalid_modifier.context = Context.local
        tgt_attr = self.ch.attribute(attribute_id=1)
        src_attr = self.ch.attribute(attribute_id=2)
        invalid_modifier = Modifier()
        invalid_modifier.state = State.offline
        invalid_modifier.context = Context.local
        invalid_modifier.filter_type = None
        invalid_modifier.filter_value = None
        valid_modifier = Modifier()
        valid_modifier.state = State.offline
        valid_modifier.context = Context.local
    def test_combination(self):
        tgt_attr = self.ch.attribute(attribute_id=1)
        src_attr = self.ch.attribute(attribute_id=2)
        invalid_modifier = Modifier()
        invalid_modifier.state = State.offline

src/e/o/Eos-HEAD/tests/attribute_calculator/modifier_operator/test_pre_mul.py   Eos(Download)
from eos.const.eos import State, Location, Context, FilterType, Operator
from eos.const.eve import EffectCategory
from eos.data.cache_object.modifier import Modifier
from eos.tests.attribute_calculator.attrcalc_testcase import AttrCalcTestCase
from eos.tests.attribute_calculator.environment import IndependentItem, ShipItem
    def setUp(self):
        AttrCalcTestCase.setUp(self)
        self.tgt_attr = self.ch.attribute(attribute_id=1)
        src_attr = self.ch.attribute(attribute_id=2)
        modifier = Modifier()

src/e/o/Eos-HEAD/tests/attribute_calculator/modifier_operator/test_pre_div.py   Eos(Download)
from eos.const.eos import State, Location, Context, FilterType, Operator
from eos.const.eve import EffectCategory
from eos.data.cache_object.modifier import Modifier
from eos.tests.attribute_calculator.attrcalc_testcase import AttrCalcTestCase
from eos.tests.attribute_calculator.environment import IndependentItem, ShipItem
    def setUp(self):
        AttrCalcTestCase.setUp(self)
        self.tgt_attr = self.ch.attribute(attribute_id=1)
        src_attr = self.ch.attribute(attribute_id=2)
        modifier = Modifier()

src/e/o/Eos-HEAD/tests/attribute_calculator/modifier_operator/test_pre_assign.py   Eos(Download)
from eos.const.eos import State, Location, Context, FilterType, Operator
from eos.const.eve import EffectCategory
from eos.data.cache_object.modifier import Modifier
from eos.tests.attribute_calculator.attrcalc_testcase import AttrCalcTestCase
from eos.tests.attribute_calculator.environment import IndependentItem, ShipItem
    def setUp(self):
        AttrCalcTestCase.setUp(self)
        self.tgt_attr = self.ch.attribute(attribute_id=1)
        src_attr = self.ch.attribute(attribute_id=2)
        modifier = Modifier()

  1 | 2 | 3 | 4 | 5  Next