Buckets:

download
raw
590 Bytes
"""
Integration Tests for Database Module
"""
import os
import sys
import pytest
sys.path.insert(
0,
os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))),
)
class TestDatabaseConnection:
"""Test Database Connection"""
def test_database_manager_creation(self):
"""Test database manager creation"""
from database.models import SessionLocal
# Just test that we can create a session
db = SessionLocal()
assert db is not None
db.close()
if __name__ == "__main__":
pytest.main([__file__, "-v"])

Xet Storage Details

Size:
590 Bytes
·
Xet hash:
1ef3505310d999f38edeef6399d95d863cec96c677c1a75f043730273985147b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.