Files
huntingclubroster/tests/tenants_browser_runner.py

9 lines
500 B
Python

import json,os,subprocess
from application_harness import Application,ROOT
app=Application()
try:
env=app.env.copy();env['HCR_TEST_URL']=app.base;ids=app.fixture('tenantSeed');env['HCR_TENANT_IDS']=json.dumps(ids)
app.fixture('memberSummarySeed',str(ids['clubA']),str(ids['clubB']),str(ids['clubA_membera']),str(ids['clubA_shared']),str(ids['clubB_shared']))
subprocess.run([env.get('NODE_TEST_COMMAND','node'),'tests/tenants_browser.js'],cwd=ROOT,env=env,check=True)
finally:app.close()