initial commit
This commit is contained in:
66
notebooks/tester_playground.ipynb
Normal file
66
notebooks/tester_playground.ipynb
Normal file
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# Testing worlds\n",
|
||||
"\n",
|
||||
"`TestSession` prints the paths it uses, downloads the apworld if it isn't\n",
|
||||
"there yet, then runs all five generation modes and prints the verdicts.\n",
|
||||
"\n",
|
||||
"Results go to `scratch_state.json` under the data directory, not the live\n",
|
||||
"`state.json` - pass `live=True` when a result is meant to count.\n",
|
||||
"\n",
|
||||
"Needs the package installed: `pip install -e .` from the repository root."
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## One world"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"metadata": {},
|
||||
"execution_count": null,
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from archipelago_tester.pipeline.batch.session import TestSession\n",
|
||||
"\n",
|
||||
"TestSession(\"Baba Is You\").run()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## Several worlds"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"metadata": {},
|
||||
"execution_count": null,
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"TestSession([\"Baba Is You\", \"Anodyne\", \"Axiom Verge\"]).run()"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"name": "python",
|
||||
"pygments_lexer": "ipython3"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
||||
Reference in New Issue
Block a user