Skip to content

Commit

Permalink
Monopoly fix
Browse files Browse the repository at this point in the history
  • Loading branch information
VeraSchild committed Aug 19, 2018
1 parent 2e9ffe5 commit 3700569
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
17 changes: 9 additions & 8 deletions tests/module3/monopoly_opdracht1Test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
import importlib


def before():
import matplotlib.pyplot as plt
plt.switch_backend("Agg")
lib.neutralizeFunction(plt.pause)
#def before():
# import matplotlib.pyplot as plt
# plt.switch_backend("Agg")
# lib.neutralizeFunction(plt.pause)

def after():
import matplotlib.pyplot as plt
plt.switch_backend("TkAgg")
reload(plt)
#def after():
# import matplotlib.pyplot as plt
# plt.switch_backend("TkAgg")
# reload(plt)

@t.test(0)
def hasworp_met_twee_dobbelstenen(test):
Expand Down Expand Up @@ -58,6 +58,7 @@ def try_run():
test.fail = lambda info : "Zorg dat de functie simuleer_groot_aantal_potjes_Monopoly als argument het aantal potjes heeft"
return False
except:
return True
try:
testInput = lib.getFunction("simuleer_groot_aantal_potjes_Monopoly", _fileName)(10000)
test.success = lambda info : "De code werkt zonder startgeld, je kunt nu startgeld invoeren!"
Expand Down
18 changes: 9 additions & 9 deletions tests/module3/monopoly_realistischTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
import importlib


def before():
import matplotlib.pyplot as plt
plt.switch_backend("Agg")
lib.neutralizeFunction(plt.pause)

def after():
import matplotlib.pyplot as plt
plt.switch_backend("TkAgg")
reload(plt)
#def before():
# import matplotlib.pyplot as plt
# plt.switch_backend("Agg")
# lib.neutralizeFunction(plt.pause)

#def after():
# import matplotlib.pyplot as plt
# plt.switch_backend("TkAgg")
# reload(plt)

@t.test(0)
def hassimuleer_groot_aantal_potjes_Monopoly(test):
Expand Down

0 comments on commit 3700569

Please sign in to comment.