Here are the examples of the python api scraper.models.Event.objects.all taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
58 Examples
0
Example 51
Project: django-dynamic-scraper Source File: scraper_json_run_test.py
def test_num_scraped_objects(self):
self.setUpScraperJSONDefaultScraper()
self.run_event_spider(1)
#logging.info(unicode(Event.objects.all()))
self.assertEqual(len(Event.objects.all()), 3)
0
Example 52
Project: django-dynamic-scraper Source File: scraper_js_run_test.py
def test_default_no_scrapyjs_main_page(self):
self.setUpScraperJSDefaultScraper()
self.run_event_spider(1)
self.assertEqual(len(Event.objects.all()), 1)
0
Example 53
Project: django-dynamic-scraper Source File: scraper_js_run_test.py
def test_activated_scrapyjs_main_page(self):
self.setUpScraperJSDockerScraper()
self.run_event_spider(1)
self.assertEqual(len(Event.objects.all()), 2)
0
Example 54
def test_processor(self):
self.setUpProcessorTest()
self.run_event_spider(1)
self.assertEqual(len(Event.objects.all()), 2)
0
Example 55
Project: django-dynamic-scraper Source File: scraper_req_options_run_test.py
def test_with_form_data_pagination(self):
self.setUpWithFormDataScraper('page')
self.setUpWithFormDataPagination()
self.run_event_spider(1)
self.assertEqual(len(Event.objects.all()), 7)
0
Example 56
Project: django-dynamic-scraper Source File: scraper_req_options_run_test.py
@unittest.skip("Skipped, cookies are not sent in test case environment, no solution yet!")
def test_with_cookies_simple(self):
self.setUpWithCookiesScraper('simple')
self.run_event_spider(1)
self.assertEqual(len(Event.objects.all()), 4)
0
Example 57
Project: django-dynamic-scraper Source File: scraper_run_test.py
def test_scraper(self):
self.run_event_spider(1)
self.assertEqual(len(Event.objects.all()), 4)
self.assertEqual(Event.objects.get(title='Event 1').description, 'Event 1 description')
0
Example 58
Project: django-dynamic-scraper Source File: scraper_run_test.py
def test_missing_url_elem(self):
self.se_url.delete()
self.run_event_spider(1)
self.assertEqual(len(Event.objects.all()), 4)