Пример #1
0
    def test_run_with_no_script(self):
        sqlite_script = SQLiteScript(db="database.db")

        msg_match = "The query script string must be specified"
        with pytest.raises(ValueError, match=msg_match):
            sqlite_script.run()
Пример #2
0
    def test_run_with_no_db(self):
        sqlite_script = SQLiteScript(script="SELECT * FROM table")

        msg_match = "The db must be specified"
        with pytest.raises(ValueError, match=msg_match):
            sqlite_script.run()