Closed ehmatthes closed 5 months ago
check_log()
function to each platform's integration test. (See fly_io integration test.)--integration-testing
-> --e2e-testing
.None
from unit_tests/conftest.py
session.config.getoption()
?Message for canceling test run if it doesn't make sense for e2e tests:
if not check_valid_test_call():
msg = "You must run either local tests or e2e tests, not both."
msg += "\n Either specify the tests you want to run, or cd"
msg += "\n into the appropriate directory and run tests from there."
print(msg)
sys.exit()
--unit-testing
flag to --local-testing
, as it's used in integration tests.
Just trying this quickly, to see if it's easy to add.
> assert len(log_files) == 1 # update on friendly summary
E AssertionError: assert 2 == 1
E + where 2 = len([PosixPath('
run_simple_deploy()
.get_confirmation()
around testing.tests/integration_tests/conftest.py
@pytest.fixture(scope='module', autouse=True, params=[False, True])
def run_simple_deploy(reset_test_project, tmp_project, request):
...
if request.param:
cmd = f"python manage.py simple_deploy --automate-all"
else:
cmd = f"python manage.py simple_deploy"
msp.call_simple_deploy(tmp_project, cmd, platform)
I'm way out of the mindset of this issue. Complete any critical open tasks so I can merge this, and resume overall development.
brew upgrade
, brew upgrade pipx
pipx uninstall poetry
, rm ~/.local/bin/poetry
, pipx install poetry
.
When I started this project, I considered any test that didn't use remote resources a unit test. I considered test that use remote resources integration tests. Those are really integration tests, and e2e tests! Now that I have proper unit tests (in unit_tests_real/ :facepalm:), it's time to rename these.
Current tasks
pytest --local
arg that would run all tests in unit_tests/, and integration_tests/ (all tests that don't require remote resources). (not needed; barepytest
covers this now.)Later tasks
Command
object for testing?Deployer
object for testing, ie address arg issue that came up for_confirm_use_db()
methods in #281?check_log()
function to each platform's integration test. (See fly_io integration test.)