-
Notifications
You must be signed in to change notification settings - Fork 15
/
test_genius_negotiators_all.py
1125 lines (715 loc) · 33 KB
/
test_genius_negotiators_all.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# ruff: noqa: F405, F403
from __future__ import annotations
import pkg_resources
import pytest
from negmas.genius.ginfo import TESTED_NEGOTIATORS
from negmas.genius.gnegotiators import *
from negmas.genius.negotiator import GeniusNegotiator
from negmas.inout import Scenario
from negmas.sao.negotiators import ToughNegotiator
from tests.switches import NEGMAS_FASTRUN, NEGMAS_RUN_GENIUS
TIMELIMIT = 10
STEPLIMIT = 50
# ALL_NEGOTIATORS = ALL_PASSING_NEGOTIATORS_NO_UNCERTAINTY
ALL_NEGOTIATORS = TESTED_NEGOTIATORS
AGENTS_WITH_NO_AGREEMENT_ON_SAME_preferences = (
# "agents.anac.y2015.Mercury.Mercury",
# "parties.in4010.q12015.group19.Group19",
# "parties.in4010.q12015.group6.Group6",
# "agents.anac.y2015.xianfa.XianFaAgent",
"agents.anac.y2016.agentsmith.AgentSmith2016",
"agents.anac.y2014.AgentTD.AgentTD",
"agents.anac.y2019.agentgg.AgentGG",
"agents.anac.y2019.saga.SAGA",
"agents.anac.y2019.sacra.SACRA",
"agents.anac.y2016.agentlight.AgentLight",
"agents.anac.y2017.agentkn.AgentKN",
"agents.anac.y2011.AgentK2.Agent_K2",
)
DOMAINS = ["tests/data/ItexvsCypress", "tests/data/Laptop"]
SKIP_CONDITION = NEGMAS_FASTRUN or not NEGMAS_RUN_GENIUS
# SKIP_CONDITION = False
STRICT_TEST = True
def do_run(
agent_factory,
base_folder,
opponent_preferences,
agent_preferences,
agent_starts,
opponent_factory,
n_steps,
time_limit,
):
domain = Scenario.from_genius_folder(base_folder)
if not domain:
raise ValueError(f"Cannot open domain {base_folder}")
neg = domain.make_session(n_steps=n_steps, time_limit=time_limit)
if neg is None:
raise ValueError(f"Failed to load domain from {base_folder}")
opponent = opponent_factory(preferences=domain.ufuns[opponent_preferences])
theagent = agent_factory(preferences=domain.ufuns[agent_preferences])
if agent_starts:
neg.add(theagent)
neg.add(opponent)
else:
neg.add(opponent)
neg.add(theagent)
neg.run()
return neg
def do_test_same_ufun(agent_factory, base_folder, n_steps, time_limit, n_trials=3):
# check that it will get to an agreement sometimes if the same ufun
# is used for both agents
from random import randint
for _ in range(n_trials):
indx = randint(0, 1)
neg = do_run(
agent_factory,
base_folder,
indx,
indx,
False,
agent_factory,
n_steps,
time_limit,
)
if neg.agreement is not None:
break
else:
assert False, f"failed to get an agreement in {n_trials} trials even using the same ufun\n{neg.trace}" # type: ignore It makes not sense to have n_trials == 0 so we are safe
def do_test_genius_agent(
AgentFactory,
must_agree_if_same_preferences=True,
java_class_name=None,
strict_test=STRICT_TEST,
):
if java_class_name is not None:
def MyAgentFactory(*args, **kwargs):
return GeniusNegotiator(
*args, java_class_name=java_class_name, strict=strict_test, **kwargs
)
AgentFactory = MyAgentFactory
agent_class_name = java_class_name
else:
agent_class_name = AgentFactory.__name__
# print(f"Running {AgentClass.__name__}")
for domain in DOMAINS:
base_folder = pkg_resources.resource_filename("negmas", resource_name=domain)
# check that it can run without errors with two different ufuns
for opponent_type in (ToughNegotiator, Atlas3):
for starts in (False, True):
for n_steps, time_limit in ((STEPLIMIT, None), (None, TIMELIMIT)):
for ufuns in ((1, 0), (0, 1)):
try:
do_run(
AgentFactory,
base_folder,
ufuns[0],
ufuns[1],
starts,
opponent_type,
n_steps=n_steps,
time_limit=time_limit,
)
except Exception as e:
print(
f"{agent_class_name} FAILED against {opponent_type.__name__}"
f" going {'first' if starts else 'last'} ({n_steps} steps with "
f"{time_limit} limit taking ufun {ufuns[1]}."
)
raise e
if not must_agree_if_same_preferences or (
java_class_name is None
and AgentFactory in AGENTS_WITH_NO_AGREEMENT_ON_SAME_preferences
):
continue
do_test_same_ufun(AgentFactory, base_folder, STEPLIMIT, None, 3)
# GeniusBridge.clean()
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no-genius or fast-run")
@pytest.mark.parametrize("negotiator", ALL_NEGOTIATORS)
def test_all_negotiators(negotiator):
do_test_genius_agent(None, java_class_name=negotiator)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no-genius or fast-run")
def test_boulware_party():
do_test_genius_agent(
None, java_class_name="negotiator.parties.BoulwareNegotiationParty"
)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no-genius or fast-run")
def test_boulware_agent():
do_test_genius_agent(None, java_class_name="agents.TimeDependentAgentBoulware")
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_FSEGA2019():
do_test_genius_agent(FSEGA2019)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_MINF():
do_test_genius_agent(MINF)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_SACRA():
do_test_genius_agent(SACRA, must_agree_if_same_preferences=False)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_SAGA():
do_test_genius_agent(SAGA, must_agree_if_same_preferences=False)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_SENGOKU():
do_test_genius_agent(SENGOKU)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ABMPAgent2():
do_test_genius_agent(ABMPAgent2)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Agent33():
do_test_genius_agent(Agent33)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Agent36():
do_test_genius_agent(Agent36)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentBuyog():
do_test_genius_agent(AgentBuyog)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentF():
do_test_genius_agent(AgentF)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentFSEGA():
do_test_genius_agent(AgentFSEGA)
# @pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
@pytest.mark.skip("Known failure")
def test_AgentGG():
do_test_genius_agent(AgentGG)
# @pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
@pytest.mark.skip("Known failure")
def test_AgentGP():
do_test_genius_agent(AgentGP)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentH():
do_test_genius_agent(AgentH)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentHerb():
do_test_genius_agent(AgentHerb)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentHP():
do_test_genius_agent(AgentHP)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentHP2():
do_test_genius_agent(AgentHP2)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentI():
do_test_genius_agent(AgentI)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentK():
do_test_genius_agent(AgentK)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentK2():
do_test_genius_agent(AgentK2)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentKF():
do_test_genius_agent(AgentKF)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentKN():
do_test_genius_agent(AgentKN, must_agree_if_same_preferences=False)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentLarry():
do_test_genius_agent(AgentLarry, must_agree_if_same_preferences=False)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentLG():
do_test_genius_agent(AgentLG)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentLight():
do_test_genius_agent(AgentLight, must_agree_if_same_preferences=False)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentM():
do_test_genius_agent(AgentM)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentMR():
do_test_genius_agent(AgentMR)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentNP1():
do_test_genius_agent(AgentNP1)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentQuest():
do_test_genius_agent(AgentQuest)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentSmith():
do_test_genius_agent(AgentSmith)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentSmith2016():
do_test_genius_agent(AgentSmith2016)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentTD():
do_test_genius_agent(AgentTD)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentTRP():
do_test_genius_agent(AgentTRP)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentW():
do_test_genius_agent(AgentW)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentX():
do_test_genius_agent(AgentX)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentYK():
do_test_genius_agent(AgentYK)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgreeableAgent2018():
do_test_genius_agent(AgreeableAgent2018)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AnacSampleAgent():
do_test_genius_agent(AnacSampleAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AresParty():
do_test_genius_agent(AresParty)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ArisawaYaki():
do_test_genius_agent(ArisawaYaki)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Aster():
do_test_genius_agent(Aster)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ATeamAgent():
do_test_genius_agent(AteamAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Atlas():
do_test_genius_agent(Atlas)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Atlas3():
do_test_genius_agent(Atlas3)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Atlas32016():
do_test_genius_agent(Atlas32016)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_BayesianAgent():
do_test_genius_agent(BayesianAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_BetaOne():
do_test_genius_agent(BetaOne)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Betaone():
do_test_genius_agent(Betaone)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_BoulwareNegotiationParty():
do_test_genius_agent(BoulwareNegotiationParty)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_BramAgent():
do_test_genius_agent(BramAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_BramAgent2():
do_test_genius_agent(BramAgent2)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_BraveCat():
do_test_genius_agent(BraveCat)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Caduceus():
do_test_genius_agent(Caduceus)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_CaduceusDC16():
do_test_genius_agent(CaduceusDC16)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ClockworkAgent():
do_test_genius_agent(ClockworkAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ConcederNegotiationParty():
do_test_genius_agent(ConcederNegotiationParty)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ConDAgent():
do_test_genius_agent(ConDAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_CUHKAgent():
do_test_genius_agent(CUHKAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_CUHKAgent2015():
do_test_genius_agent(CUHKAgent2015)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_DandikAgent():
do_test_genius_agent(DandikAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_DoNA():
do_test_genius_agent(DoNA)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_DrageKnight():
do_test_genius_agent(DrageKnight)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_E2Agent():
do_test_genius_agent(E2Agent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_EAgent():
do_test_genius_agent(EAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ExpRubick():
do_test_genius_agent(ExpRubick)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Farma():
do_test_genius_agent(Farma)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Farma17():
do_test_genius_agent(Farma17)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Flinch():
do_test_genius_agent(Flinch)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_FullAgent():
do_test_genius_agent(FullAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_FunctionalAcceptor():
do_test_genius_agent(FunctionalAcceptor)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_FuzzyAgent():
do_test_genius_agent(FuzzyAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_GAgent():
do_test_genius_agent(GAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Gahboninho():
do_test_genius_agent(Gahboninho)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Gangester():
do_test_genius_agent(Gangester)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Gangster():
do_test_genius_agent(Gangster)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_GaravelAgent():
do_test_genius_agent(GaravelAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Gin():
do_test_genius_agent(Gin)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_GrandmaAgent():
do_test_genius_agent(GrandmaAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Gravity():
do_test_genius_agent(Gravity)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group1():
do_test_genius_agent(Group1)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group1BOA():
do_test_genius_agent(Group1BOA)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AI2014Group2():
do_test_genius_agent(AI2014Group2)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group3():
do_test_genius_agent(Group3)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group3Q2015():
do_test_genius_agent(Group3Q2015)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group4():
do_test_genius_agent(Group4)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group5():
do_test_genius_agent(Group5)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group6():
do_test_genius_agent(Group6)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group7():
do_test_genius_agent(Group7)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group8():
do_test_genius_agent(Group8)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group9():
do_test_genius_agent(Group9)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group10():
do_test_genius_agent(Group10)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group11():
do_test_genius_agent(Group11)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group12():
do_test_genius_agent(Group12)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group13():
do_test_genius_agent(Group13)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group14():
do_test_genius_agent(Group14)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group15():
do_test_genius_agent(Group15)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group16():
do_test_genius_agent(Group16)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group17():
do_test_genius_agent(Group17)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group18():
do_test_genius_agent(Group18)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group19():
do_test_genius_agent(Group19)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group20():
do_test_genius_agent(Group20)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group21():
do_test_genius_agent(Group21)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Group22():
do_test_genius_agent(Group22)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_AgentNeo():
do_test_genius_agent(AgentNeo)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_GroupY():
do_test_genius_agent(GroupY)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_HardDealer():
do_test_genius_agent(HardDealer)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_HardHeaded():
do_test_genius_agent(HardHeaded)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_IAMcrazyHaggler():
do_test_genius_agent(IAMcrazyHaggler)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_IAMhaggler():
do_test_genius_agent(IAMhaggler)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_IAMhaggler2011():
do_test_genius_agent(IAMhaggler2011)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_IAMhaggler2012():
do_test_genius_agent(IAMhaggler2012)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Imitator():
do_test_genius_agent(Imitator)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ImmediateAcceptor():
do_test_genius_agent(ImmediateAcceptor)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_InoxAgent():
do_test_genius_agent(InoxAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_IQSun2018():
do_test_genius_agent(IQSun2018)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_JonnyBlack():
do_test_genius_agent(JonnyBlack)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_KAgent():
do_test_genius_agent(KAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_KakeSoba():
do_test_genius_agent(KakeSoba)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_KGAgent():
do_test_genius_agent(KGAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Lancelot():
do_test_genius_agent(Lancelot)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Libra():
do_test_genius_agent(Libra)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_MadAgent():
do_test_genius_agent(MadAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Mamenchis():
do_test_genius_agent(Mamenchis)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_MaxOops():
do_test_genius_agent(MaxOops)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_MeanBot():
do_test_genius_agent(MeanBot)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_MengWan():
do_test_genius_agent(MengWan)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Mercury():
do_test_genius_agent(Mercury)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_MetaAgent():
do_test_genius_agent(MetaAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_MetaAgent2012():
do_test_genius_agent(MetaAgent2012)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_MetaAgent2013():
do_test_genius_agent(MetaAgent2013)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Mosa():
do_test_genius_agent(Mosa)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_MyAgent():
do_test_genius_agent(MyAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Ngent():
do_test_genius_agent(Ngent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_NiceTitForTat():
do_test_genius_agent(NiceTitForTat)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Nozomi():
do_test_genius_agent(Nozomi)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_OMACagent():
do_test_genius_agent(OMACagent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_OptimalBidderSimple():
do_test_genius_agent(OptimalBidderSimple)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ParsAgent():
do_test_genius_agent(ParsAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ParsAgent2():
do_test_genius_agent(ParsAgent2)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ParsAgent3():
do_test_genius_agent(ParsAgent3)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ParsCat():
do_test_genius_agent(ParsCat)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ParsCat2():
do_test_genius_agent(ParsCat2)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_PhoenixParty():
do_test_genius_agent(PhoenixParty)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_PNegotiator():
do_test_genius_agent(PNegotiator)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_PokerFace():
do_test_genius_agent(PokerFace)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_PonPokoAgent():
do_test_genius_agent(PonPokoAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_PonPokoRampage():
do_test_genius_agent(PonPokoRampage)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Q12015Group2():
do_test_genius_agent(Q12015Group2)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_RandomCounterOfferNegotiationParty():
do_test_genius_agent(RandomCounterOfferNegotiationParty)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_RandomDance():
do_test_genius_agent(RandomDance)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_RandomParty():
do_test_genius_agent(RandomParty)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_RandomParty2():
do_test_genius_agent(RandomParty2)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Rubick():
do_test_genius_agent(Rubick)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Seto():
do_test_genius_agent(Seto)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_ShahAgent():
do_test_genius_agent(ShahAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Shiboy():
do_test_genius_agent(Shiboy)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_SimilarityAgent():
do_test_genius_agent(SimilarityAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Simpatico():
do_test_genius_agent(Simpatico)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_SimpleAgent():
do_test_genius_agent(SimpleAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_SimpleAgent2017():
do_test_genius_agent(SimpleAgent2017)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_SlavaAgent():
do_test_genius_agent(SlavaAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_SMACAgent():
do_test_genius_agent(SMACAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Sobut():
do_test_genius_agent(Sobut)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_SolverAgent():
do_test_genius_agent(SolverAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_Sontag():
do_test_genius_agent(Sontag)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_SouthamptonAgent():
do_test_genius_agent(SouthamptonAgent)
@pytest.mark.skipif(condition=SKIP_CONDITION, reason="Either no genius or fast run")
def test_SYAgent():