forked from mirror/Archipelago
Some checks failed
Analyze modified files / flake8 (push) Failing after 2m28s
Build / build-win (push) Has been cancelled
Build / build-ubuntu2204 (push) Has been cancelled
ctest / Test C++ ubuntu-latest (push) Has been cancelled
ctest / Test C++ windows-latest (push) Has been cancelled
Analyze modified files / mypy (push) Has been cancelled
Build and Publish Docker Images / Push Docker image to Docker Hub (push) Successful in 5m4s
Native Code Static Analysis / scan-build (push) Failing after 5m2s
type check / pyright (push) Successful in 1m7s
unittests / Test Python 3.11.2 ubuntu-latest (push) Failing after 16m23s
unittests / Test Python 3.12 ubuntu-latest (push) Failing after 28m19s
unittests / Test Python 3.13 ubuntu-latest (push) Failing after 14m49s
unittests / Test hosting with 3.13 on ubuntu-latest (push) Successful in 5m0s
unittests / Test Python 3.13 macos-latest (push) Has been cancelled
unittests / Test Python 3.11 windows-latest (push) Has been cancelled
unittests / Test Python 3.13 windows-latest (push) Has been cancelled
144 lines
3.8 KiB
Python
144 lines
3.8 KiB
Python
import random
|
|
|
|
from test.bases import WorldTestBase
|
|
|
|
|
|
class VoltorbFlipTestBase(WorldTestBase):
|
|
game = "Voltorb Flip"
|
|
options = {"accessibility": "full"}
|
|
|
|
|
|
class TestRandom1(VoltorbFlipTestBase):
|
|
coins_maximum = random.randint(10, 50000)
|
|
options = {
|
|
"goal": "random",
|
|
"level_locations_adjustments": {
|
|
"Maximum": random.randint(1, 9),
|
|
},
|
|
"coin_locations_adjustments": {
|
|
"Maximum": coins_maximum,
|
|
"Steps": random.randint(10, coins_maximum),
|
|
},
|
|
"artificial_logic": "random",
|
|
}
|
|
|
|
|
|
class TestRandom2(TestRandom1):
|
|
coins_maximum = random.randint(10, 50000)
|
|
options = {
|
|
"goal": "random",
|
|
"level_locations_adjustments": {
|
|
"Maximum": random.randint(1, 9),
|
|
},
|
|
"coin_locations_adjustments": {
|
|
"Maximum": coins_maximum,
|
|
"Steps": random.randint(10, coins_maximum),
|
|
},
|
|
"artificial_logic": "random",
|
|
}
|
|
|
|
|
|
class TestRandom3(TestRandom1):
|
|
coins_maximum = random.randint(10, 50000)
|
|
options = {
|
|
"goal": "random",
|
|
"level_locations_adjustments": {
|
|
"Maximum": random.randint(1, 9),
|
|
},
|
|
"coin_locations_adjustments": {
|
|
"Maximum": coins_maximum,
|
|
"Steps": random.randint(10, coins_maximum),
|
|
},
|
|
"artificial_logic": "random",
|
|
}
|
|
|
|
|
|
class TestRandom4(TestRandom1):
|
|
coins_maximum = random.randint(10, 50000)
|
|
options = {
|
|
"goal": "random",
|
|
"level_locations_adjustments": {
|
|
"Maximum": random.randint(1, 9),
|
|
},
|
|
"coin_locations_adjustments": {
|
|
"Maximum": coins_maximum,
|
|
"Steps": random.randint(10, coins_maximum),
|
|
},
|
|
"artificial_logic": "random",
|
|
}
|
|
|
|
|
|
class TestRandom5(TestRandom1):
|
|
coins_maximum = random.randint(10, 50000)
|
|
options = {
|
|
"goal": "random",
|
|
"level_locations_adjustments": {
|
|
"Maximum": random.randint(1, 9),
|
|
},
|
|
"coin_locations_adjustments": {
|
|
"Maximum": coins_maximum,
|
|
"Steps": random.randint(10, coins_maximum),
|
|
},
|
|
"artificial_logic": "random",
|
|
}
|
|
|
|
|
|
class TestRandom6(TestRandom1):
|
|
coins_maximum = random.randint(10, 50000)
|
|
options = {
|
|
"goal": "random",
|
|
"level_locations_adjustments": {
|
|
"Maximum": random.randint(1, 9),
|
|
},
|
|
"coin_locations_adjustments": {
|
|
"Maximum": coins_maximum,
|
|
"Steps": random.randint(10, coins_maximum),
|
|
},
|
|
"artificial_logic": "random",
|
|
}
|
|
|
|
|
|
class TestRandom7(TestRandom1):
|
|
coins_maximum = random.randint(10, 50000)
|
|
options = {
|
|
"goal": "random",
|
|
"level_locations_adjustments": {
|
|
"Maximum": random.randint(1, 9),
|
|
},
|
|
"coin_locations_adjustments": {
|
|
"Maximum": coins_maximum,
|
|
"Steps": random.randint(10, coins_maximum),
|
|
},
|
|
"artificial_logic": "random",
|
|
}
|
|
|
|
|
|
class TestRandom8(TestRandom1):
|
|
coins_maximum = random.randint(10, 50000)
|
|
options = {
|
|
"goal": "random",
|
|
"level_locations_adjustments": {
|
|
"Maximum": random.randint(1, 9),
|
|
},
|
|
"coin_locations_adjustments": {
|
|
"Maximum": coins_maximum,
|
|
"Steps": random.randint(10, coins_maximum),
|
|
},
|
|
"artificial_logic": "random",
|
|
}
|
|
|
|
|
|
class TestRandom9(TestRandom1):
|
|
coins_maximum = random.randint(10, 50000)
|
|
options = {
|
|
"goal": "random",
|
|
"level_locations_adjustments": {
|
|
"Maximum": random.randint(1, 9),
|
|
},
|
|
"coin_locations_adjustments": {
|
|
"Maximum": coins_maximum,
|
|
"Steps": random.randint(10, coins_maximum),
|
|
},
|
|
"artificial_logic": "random",
|
|
}
|