Skip to content

Commit

Permalink
Moved local-only tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ciioprof0 committed Aug 18, 2024
1 parent 996c456 commit 26a4d40
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 15 deletions.
126 changes: 111 additions & 15 deletions ling508/demos/demo_clex_importer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,18 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 3,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"The sql extension is already loaded. To reload it, use:\n",
" %reload_ext sql\n"
]
}
],
"source": [
"# %pip install -r ../demos/requirements.txt\n",
"\n",
Expand Down Expand Up @@ -482,15 +491,15 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 8,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m [100%]\u001b[0m\n",
"\u001b[32m\u001b[32m\u001b[1m32 passed\u001b[0m\u001b[32m in 50.15s\u001b[0m\u001b[0m\n"
"\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m.\u001b[0m\u001b[32m [100%]\u001b[0m\n",
"\u001b[32m\u001b[32m\u001b[1m27 passed\u001b[0m\u001b[32m in 18.48s\u001b[0m\u001b[0m\n"
]
},
{
Expand All @@ -499,13 +508,13 @@
"<ExitCode.OK: 0>"
]
},
"execution_count": 2,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Run all tests in the test directory (~30-60 seconds)\n",
"# Run all tests in the test directory (~60 seconds)\n",
"pytest.main([TEST_DIR, VERBOSITY, TRACEBACK])\n"
]
},
Expand Down Expand Up @@ -643,13 +652,44 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[1m============================= test session starts =============================\u001b[0m\n",
"platform win32 -- Python 3.12.4, pytest-8.3.2, pluggy-1.5.0 -- d:\\OneDrive\\Code\\hltms\\stixd\\.venv\\Scripts\\python.exe\n",
"cachedir: .pytest_cache\n",
"rootdir: d:\\OneDrive\\Code\\hltms\\stixd\n",
"configfile: pytest.ini\n",
"plugins: anyio-4.4.0, mock-3.14.0\n",
"\u001b[1mcollecting ... \u001b[0mcollected 4 items\n",
"\n",
"..\\tests\\local\\test_70_clex_importer_local.py::test_import_clex_entries[1-adv-fast-fast-None-67e9b1c5cbd53045919deda792be49b18b41a09b3bd328f9cc406bb27d951f62] \u001b[32mPASSED\u001b[0m\u001b[32m [ 25%]\u001b[0m\n",
"..\\tests\\local\\test_70_clex_importer_local.py::test_import_clex_entries[19-noun_pl-months-month-neutr-6e7ab17fe3f242d10f360197f40646b443db6079d730e9d746c96824a2606336] \u001b[32mPASSED\u001b[0m\u001b[32m [ 50%]\u001b[0m\n",
"..\\tests\\local\\test_70_clex_importer_local.py::test_import_clex_entries[39-iv_finsg-walks-walk-None-f02be7a15dcd7cca79dc9b1c141991d479120352658c50030c7268da9372e6ff] \u001b[32mPASSED\u001b[0m\u001b[32m [ 75%]\u001b[0m\n",
"..\\tests\\local\\test_70_clex_importer_local.py::test_import_clex_entries[58-dv_pp-succeeded-succeed-as-8ee745975fad537905042b710e2f602f6c6bbe6c72f123b3596ce0b962f2b23f] \u001b[32mPASSED\u001b[0m\u001b[32m [100%]\u001b[0m\n",
"\n",
"\u001b[32m============================= \u001b[32m\u001b[1m4 passed\u001b[0m\u001b[32m in 13.60s\u001b[0m\u001b[32m ==============================\u001b[0m\n"
]
},
{
"data": {
"text/plain": [
"<ExitCode.OK: 0>"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Run a specific test file in the test directory (~ 10 seconds)\n",
"test_file = \"test_70_clex_importer_local.py\"\n",
"pytest.main([os.path.join(TEST_DIR, test_file), \"-v\", \"--tb=auto\"])\n"
"pytest.main([os.path.join(TEST_DIR, \"local/\", test_file), \"-v\", \"--tb=auto\"])\n"
]
},
{
Expand Down Expand Up @@ -770,13 +810,41 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[1m============================= test session starts =============================\u001b[0m\n",
"platform win32 -- Python 3.12.4, pytest-8.3.2, pluggy-1.5.0 -- d:\\OneDrive\\Code\\hltms\\stixd\\.venv\\Scripts\\python.exe\n",
"cachedir: .pytest_cache\n",
"rootdir: d:\\OneDrive\\Code\\hltms\\stixd\n",
"configfile: pytest.ini\n",
"plugins: anyio-4.4.0, mock-3.14.0\n",
"\u001b[1mcollecting ... \u001b[0mcollected 1 item\n",
"\n",
"..\\tests\\local\\test_90_e2e_local.py::test_form_submission \u001b[32mPASSED\u001b[0m\u001b[32m [100%]\u001b[0m\n",
"\n",
"\u001b[32m============================= \u001b[32m\u001b[1m1 passed\u001b[0m\u001b[32m in 13.73s\u001b[0m\u001b[32m ==============================\u001b[0m\n"
]
},
{
"data": {
"text/plain": [
"<ExitCode.OK: 0>"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Run a specific test file in the test directory (~15 seconds)\n",
"test_file = \"test_90_e2e_local.py\"\n",
"pytest.main([os.path.join(TEST_DIR, test_file), \"-v\", \"--tb=auto\"])\n"
"pytest.main([os.path.join(TEST_DIR, \"local/\", test_file), \"-v\", \"--tb=auto\"])\n"
]
},
{
Expand All @@ -796,9 +864,37 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\u001b[1m============================= test session starts =============================\u001b[0m\n",
"platform win32 -- Python 3.12.4, pytest-8.3.2, pluggy-1.5.0 -- d:\\OneDrive\\Code\\hltms\\stixd\\.venv\\Scripts\\python.exe\n",
"cachedir: .pytest_cache\n",
"rootdir: d:\\OneDrive\\Code\\hltms\\stixd\n",
"configfile: pytest.ini\n",
"plugins: anyio-4.4.0, mock-3.14.0\n",
"\u001b[1mcollecting ... \u001b[0mcollected 1 item\n",
"\n",
"..\\tests\\test_95_e2e_ci.py::test_form_submission \u001b[32mPASSED\u001b[0m\u001b[32m [100%]\u001b[0m\n",
"\n",
"\u001b[32m============================= \u001b[32m\u001b[1m1 passed\u001b[0m\u001b[32m in 13.65s\u001b[0m\u001b[32m ==============================\u001b[0m\n"
]
},
{
"data": {
"text/plain": [
"<ExitCode.OK: 0>"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Run a specific test file in the test directory (~15 seconds)\n",
"test_file = \"test_95_e2e_ci.py\"\n",
Expand Down
File renamed without changes.

0 comments on commit 26a4d40

Please sign in to comment.