10 lines
541 B
Python
10 lines
541 B
Python
import pathlib,shutil,subprocess,unittest
|
|
|
|
class NativeShopDesign(unittest.TestCase):
|
|
@unittest.skipUnless(shutil.which('php'),'PHP is checked on the native shop host')
|
|
def test_response_hook_preserves_non_page_responses(self):
|
|
root=pathlib.Path(__file__).resolve().parent/'oscommerce'
|
|
result=subprocess.run(['php',str(root/'test-shop-design-bootstrap.php'),str(root/'DuneAccount.php')],capture_output=True,text=True,check=True)
|
|
self.assertIn('16 native response cases passed',result.stdout)
|
|
|
|
if __name__=='__main__':unittest.main()
|

Staff