forked from public/pyceo
shorten tests for group search API
This commit is contained in:
parent
337c05c511
commit
6786c8e44e
|
@ -81,23 +81,6 @@ def test_groups(cli_setup, ldap_user):
|
||||||
"touch",
|
"touch",
|
||||||
"error",
|
"error",
|
||||||
"happy",
|
"happy",
|
||||||
"moon",
|
|
||||||
"decisive",
|
|
||||||
"exciting",
|
|
||||||
"super",
|
|
||||||
"ambitious",
|
|
||||||
"acidic",
|
|
||||||
"addition",
|
|
||||||
"blue-eyed",
|
|
||||||
"grate",
|
|
||||||
"replace",
|
|
||||||
"natural",
|
|
||||||
"explode",
|
|
||||||
"decorous",
|
|
||||||
"wide",
|
|
||||||
"hang",
|
|
||||||
"tomatoes",
|
|
||||||
"thirsty",
|
|
||||||
]
|
]
|
||||||
runner = CliRunner()
|
runner = CliRunner()
|
||||||
for name in group_names:
|
for name in group_names:
|
||||||
|
|
|
@ -113,158 +113,11 @@ def test_api_add_member_to_group(client, create_group_result, ldap_user):
|
||||||
|
|
||||||
@pytest.fixture(scope='module')
|
@pytest.fixture(scope='module')
|
||||||
def create_random_names():
|
def create_random_names():
|
||||||
# 150 random names generated with https://www.randomlists.com/random-words
|
# generated with https://www.randomlists.com/random-words
|
||||||
random_names = [
|
random_names = [
|
||||||
"intelligent",
|
"intelligent",
|
||||||
"skin",
|
"skin",
|
||||||
"shivering",
|
"shivering",
|
||||||
"hapless",
|
|
||||||
"abstracted",
|
|
||||||
"kiss",
|
|
||||||
"decision",
|
|
||||||
"van",
|
|
||||||
"advise",
|
|
||||||
"parcel",
|
|
||||||
"disillusioned",
|
|
||||||
"print",
|
|
||||||
"skate",
|
|
||||||
"robin",
|
|
||||||
"explode",
|
|
||||||
"fearless",
|
|
||||||
"feeling",
|
|
||||||
"chemical",
|
|
||||||
"identify",
|
|
||||||
"baseball",
|
|
||||||
"room",
|
|
||||||
"contain",
|
|
||||||
"smooth",
|
|
||||||
"play",
|
|
||||||
"fierce",
|
|
||||||
"north",
|
|
||||||
"secretive",
|
|
||||||
"plug",
|
|
||||||
"rely",
|
|
||||||
"home",
|
|
||||||
"push",
|
|
||||||
"guard",
|
|
||||||
"allow",
|
|
||||||
"depressed",
|
|
||||||
"evasive",
|
|
||||||
"slap",
|
|
||||||
"delicate",
|
|
||||||
"concern",
|
|
||||||
"consider",
|
|
||||||
"fang",
|
|
||||||
"roll",
|
|
||||||
"bait",
|
|
||||||
"rabbits",
|
|
||||||
"guarded",
|
|
||||||
"abnormal",
|
|
||||||
"loutish",
|
|
||||||
"voracious",
|
|
||||||
"chase",
|
|
||||||
"army",
|
|
||||||
"harsh",
|
|
||||||
"grieving",
|
|
||||||
"tacky",
|
|
||||||
"far",
|
|
||||||
"wise",
|
|
||||||
"street",
|
|
||||||
"price",
|
|
||||||
"bikes",
|
|
||||||
"post",
|
|
||||||
"afternoon",
|
|
||||||
"deranged",
|
|
||||||
"cart",
|
|
||||||
"evanescent",
|
|
||||||
"shrill",
|
|
||||||
"uppity",
|
|
||||||
"adhoc",
|
|
||||||
"alleged",
|
|
||||||
"round",
|
|
||||||
"smart",
|
|
||||||
"support",
|
|
||||||
"plantation",
|
|
||||||
"flap",
|
|
||||||
"pretty",
|
|
||||||
"radiate",
|
|
||||||
"excite",
|
|
||||||
"memorize",
|
|
||||||
"whisper",
|
|
||||||
"thoughtless",
|
|
||||||
"substantial",
|
|
||||||
"upset",
|
|
||||||
"pathetic",
|
|
||||||
"flow",
|
|
||||||
"shake",
|
|
||||||
"wail",
|
|
||||||
"share",
|
|
||||||
"songs",
|
|
||||||
"scream",
|
|
||||||
"aspiring",
|
|
||||||
"overwrought",
|
|
||||||
"mass",
|
|
||||||
"romantic",
|
|
||||||
"deliver",
|
|
||||||
"anxious",
|
|
||||||
"laborer",
|
|
||||||
"angry",
|
|
||||||
"faded",
|
|
||||||
"wish",
|
|
||||||
"homeless",
|
|
||||||
"salty",
|
|
||||||
"start",
|
|
||||||
"crooked",
|
|
||||||
"tremble",
|
|
||||||
"enjoy",
|
|
||||||
"chivalrous",
|
|
||||||
"useless",
|
|
||||||
"womanly",
|
|
||||||
"brake",
|
|
||||||
"wandering",
|
|
||||||
"please",
|
|
||||||
"cow",
|
|
||||||
"reason",
|
|
||||||
"expert",
|
|
||||||
"null",
|
|
||||||
"basket",
|
|
||||||
"early",
|
|
||||||
"river",
|
|
||||||
"prevent",
|
|
||||||
"sticks",
|
|
||||||
"vacation",
|
|
||||||
"eggnog",
|
|
||||||
"receive",
|
|
||||||
"memory",
|
|
||||||
"exchange",
|
|
||||||
"burly",
|
|
||||||
"agreement",
|
|
||||||
"flock",
|
|
||||||
"subdued",
|
|
||||||
"clap",
|
|
||||||
"simplistic",
|
|
||||||
"tiger",
|
|
||||||
"responsible",
|
|
||||||
"knock",
|
|
||||||
"camera",
|
|
||||||
"nifty",
|
|
||||||
"capable",
|
|
||||||
"disappear",
|
|
||||||
"afterthought",
|
|
||||||
"obese",
|
|
||||||
"harass",
|
|
||||||
"delicious",
|
|
||||||
"badge",
|
|
||||||
"dam",
|
|
||||||
"plate",
|
|
||||||
"acrid",
|
|
||||||
"voiceless",
|
|
||||||
"mate",
|
|
||||||
"juice",
|
|
||||||
"food",
|
|
||||||
"town",
|
|
||||||
"giraffe",
|
|
||||||
"decorate"
|
|
||||||
]
|
]
|
||||||
yield random_names
|
yield random_names
|
||||||
|
|
||||||
|
@ -286,16 +139,9 @@ def test_api_group_search(client, create_searchable_groups):
|
||||||
cns = create_searchable_groups
|
cns = create_searchable_groups
|
||||||
# pairs of cn indices as well as amount of results that should be returned
|
# pairs of cn indices as well as amount of results that should be returned
|
||||||
random_numbers = [
|
random_numbers = [
|
||||||
(88, 68),
|
(0, 68),
|
||||||
(117, 54),
|
(1, 54),
|
||||||
(63, 97),
|
(2, 97),
|
||||||
(64, 19),
|
|
||||||
(114, 98),
|
|
||||||
(45, 146),
|
|
||||||
(58, 12),
|
|
||||||
(42, 126),
|
|
||||||
(66, 137),
|
|
||||||
(39, 135),
|
|
||||||
]
|
]
|
||||||
|
|
||||||
for tup in random_numbers:
|
for tup in random_numbers:
|
||||||
|
|
Loading…
Reference in New Issue