Esempio n. 1
0
    def test_nigp_import(self):
        main(
            current_app.config.get('PROJECT_ROOT') +
            '/purchasing_test/mock/nigp.csv')

        categories = Category.query.all()

        self.assertEquals(len(categories), 5)
    def test_nigp_import(self):
        main(current_app.config.get('PROJECT_ROOT') + '/purchasing_test/mock/nigp.csv')

        categories = Category.query.all()

        self.assertEquals(len(categories), 5)
Esempio n. 3
0
 def setUp(self):
     super(TestOpportunities, self).setUp()
     # import our test categories
     main(current_app.config.get('PROJECT_ROOT') + '/purchasing_test/mock/nigp.csv')