some fix
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
import os
|
||||
from datetime import datetime
|
||||
import pytest
|
||||
import os
|
||||
import sqlite3
|
||||
import pytest
|
||||
from database.db import BotDB
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def bot():
|
||||
"""Фикстура для создания объекта BotDB."""
|
||||
@@ -234,6 +233,7 @@ def test_update_version_integrity_error(bot):
|
||||
with pytest.raises(sqlite3.IntegrityError):
|
||||
bot.update_version(123, "script_2.sql")
|
||||
|
||||
|
||||
def test_update_version_error(bot):
|
||||
__drop_table('migrations')
|
||||
with pytest.raises(sqlite3.OperationalError):
|
||||
|
||||
Reference in New Issue
Block a user