code stringlengths 3 6.57k |
|---|
str(excinfo.value) |
test_reactive_html_no_id_method_error() |
pytest.raises(ValueError) |
Test(ReactiveHTML) |
_onclick(self) |
str(excinfo.value) |
test_reactive_html_dom_events() |
TestDOMEvents(ReactiveHTML) |
param.Integer(default=3, doc='An integer') |
param.Number(default=3.14, doc='A float') |
data_model.properties() |
data_model.lookup('int') |
isinstance(int_prop.property, bp.Int) |
int_prop.class_default(data_model) |
data_model.lookup('float') |
isinstance(float_prop.property, bp.Float) |
float_prop.class_default(data_model) |
TestDOMEvents() |
test.get_root() |
test_reactive_html_inline() |
TestInline(ReactiveHTML) |
param.Integer(default=3, doc='An integer') |
_div_change(self, event) |
data_model.properties() |
data_model.lookup('int') |
isinstance(int_prop.property, bp.Int) |
int_prop.class_default(data_model) |
TestInline() |
test.get_root() |
test.on_event('div', 'click', print) |
test_reactive_html_children() |
TestChildren(ReactiveHTML) |
param.List(default=[]) |
TextInput() |
TestChildren(children=[widget]) |
test.get_root() |
len(widget._models) |
TextInput() |
len(widget._models) |
test._cleanup(root) |
len(test._models) |
len(widget_new._models) |
test_reactive_html_templated_children() |
TestTemplatedChildren(ReactiveHTML) |
param.List(default=[]) |
TextInput() |
TestTemplatedChildren(children=[widget]) |
test.get_root() |
TextInput() |
len(widget._models) |
test_reactive_html_templated_dict_children() |
TestTemplatedChildren(ReactiveHTML) |
param.Dict(default={}) |
children.items() |
TextInput() |
TestTemplatedChildren(children={'test': widget}) |
test.get_root() |
TextInput() |
len(widget._models) |
test_reactive_html_templated_children_add_loop_id() |
TestTemplatedChildren(ReactiveHTML) |
param.List(default=[]) |
TestTemplatedChildren(children=['A', 'B', 'C']) |
test._get_template() |
test.get_root() |
test_reactive_html_templated_children_add_loop_id_and_for_loop_var() |
TestTemplatedChildren(ReactiveHTML) |
param.List(default=[]) |
TestTemplatedChildren(children=['A', 'B', 'C']) |
test._get_template() |
test.get_root() |
pytest.mark.parametrize('operator', ['', '+', '-', '*', '\\', '%', '**', '>>', '<<', '>>>', '&', '^', '&&', '||', '??']) |
pytest.mark.parametrize('sep', [' ', '']) |
test_reactive_html_scripts_linked_properties_assignment_operator(operator, sep) |
TestScripts(ReactiveHTML) |
param.Integer() |
TestScripts() |
_linked_properties() |
EventTracking(db.Model) |
EventTrackingTypes(BaseEnum) |
db.Column('id', db.Integer, db.Sequence('event_tracking_id_seq') |
db.Column('key_id', db.Integer, nullable=False, index=True) |
db.Column('event_ts', db.DateTime, nullable=False, index=True) |
db.Column('event_tracking_type', db.String(20) |
db.ForeignKey('event_tracking_types.event_tracking_type') |
db.Column('status', db.Integer, nullable=True) |
db.Column('message', db.String(2000) |
db.Column('email_address', db.String(250) |
save(self) |
db.session.add(self) |
db.session.commit() |
json(self) |
model_utils.format_ts(self.event_ts) |
find_by_id(cls, event_id: int) |
cls.query.get(event_id) |
find_by_key_id(cls, key_id: int) |
cls.query.filter(EventTracking.key_id == key_id) |
order_by(EventTracking.id) |
all() |
find_by_key_id_type(cls, key_id: int, event_tracking_type: str, extra_key: str = None) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.