Ejemplo n.º 1
0
    def read_resources(self):
        """Walk to readers to populate the db"""

        readers = find_readers()
        self.print_title('Reading resource')

        for reader in readers:
            logging.info('Reading with %s', reader)
            reader()
Ejemplo n.º 2
0
    def test_find_readers(self):
        "Correctly find readers"

        readers = find_readers()
        self.assertIn(dummy_reader, readers)
Ejemplo n.º 3
0
    def test_find_readers(self):
        "Correctly find readers"

        readers = find_readers()
        self.assertIn(dummy_reader, readers)