Exemplo n.º 1
0
 def deal_source(self, yelp_namespace_name):
     return factories.create_source(yelp_namespace_name, 'deal')
 def dummy_src(self, dummy_namespace):
     return factories.create_source(
         namespace_name=dummy_namespace.name,
         source_name='meta_source_A_1',
         owner_email='*****@*****.**'
     )
 def foo_source(self, yelp_namespace):
     return factories.create_source(yelp_namespace.name, 'foo')
Exemplo n.º 4
0
 def review_source(self, yelp_namespace_name):
     return factories.create_source(yelp_namespace_name, 'review')
Exemplo n.º 5
0
 def deal_source(self, yelp_namespace_name):
     return factories.create_source(yelp_namespace_name, 'deal')
Exemplo n.º 6
0
 def create_source(self, source_no):
     return factories.create_source(
         namespace_name='foo',
         source_name='source_{}'.format(source_no),
         owner_email='*****@*****.**'
     )
Exemplo n.º 7
0
 def sources(self, namespace_name):
     return [
         factories.create_source(namespace_name, 'source1'),
         factories.create_source(namespace_name, 'source2')
     ]
 def source_two(self, namespace):
     return factories.create_source(namespace.name, source_name='src_two')
Exemplo n.º 9
0
def meta_attr_source(meta_attr_namespace):
    return factories.create_source(
        namespace_name=meta_attr_namespace.name,
        source_name='dummy_meta_attr',
        owner_email='*****@*****.**'
    )
Exemplo n.º 10
0
def another_biz_source(yelp_namespace, another_biz_src_name):
    return factories.create_source(
        namespace_name=yelp_namespace.name,
        source_name=another_biz_src_name,
        owner_email='*****@*****.**'
    )
 def foo_source(self, yelp_namespace):
     return factories.create_source(yelp_namespace.name, 'foo')
 def dummy_src(self, dummy_namespace):
     return factories.create_source(namespace_name=dummy_namespace.name,
                                    source_name='meta_source_A_1',
                                    owner_email='*****@*****.**')
Exemplo n.º 13
0
 def create_source(self, source_no):
     return factories.create_source(
         namespace_name='foo',
         source_name='source_{}'.format(source_no),
         owner_email='*****@*****.**')
Exemplo n.º 14
0
 def sources(self, namespace_name):
     return [
         factories.create_source(namespace_name, 'source1'),
         factories.create_source(namespace_name, 'source2')
     ]
Exemplo n.º 15
0
 def review_source(self, yelp_namespace_name):
     return factories.create_source(yelp_namespace_name, 'review')
Exemplo n.º 16
0
 def source(self):
     return factories.create_source(
         factories.fake_namespace,
         factories.fake_source
     )
 def source_one(self, namespace):
     return factories.create_source(namespace.name, source_name='some_src')