mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Revert "feat(db): add an index for SSHPubKeys.PubKey"
This reverts commit 1a7f6e1fa9
.
This commit broke account creation in some way. We'd still like to
do this, but we need to ensure it does not intrude on other facets.
Extra: We should really work out how this even passed tests; it
should not have.
This commit is contained in:
parent
b3d09a4b77
commit
5abd5db313
3 changed files with 0 additions and 52 deletions
|
@ -1,23 +0,0 @@
|
|||
import pytest
|
||||
|
||||
from sqlalchemy import inspect
|
||||
|
||||
from aurweb.db import get_engine
|
||||
from aurweb.models.ssh_pub_key import SSHPubKey
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def setup(db_test):
|
||||
return
|
||||
|
||||
|
||||
def test_sshpubkeys_pubkey_index():
|
||||
insp = inspect(get_engine())
|
||||
indexes = insp.get_indexes(SSHPubKey.__tablename__)
|
||||
|
||||
found_pk = False
|
||||
for idx in indexes:
|
||||
if idx.get("name") == "SSHPubKeysPubKey":
|
||||
assert idx.get("column_names") == ["PubKey"]
|
||||
found_pk = True
|
||||
assert found_pk
|
Loading…
Add table
Add a link
Reference in a new issue