1. Ronny Pfannschmidt
  2. genscript

Commits

Ronny Pfannschmidt  committed a8866db

yay, we can generate a working pytest

  • Participants
  • Parent commits d80062c
  • Branches default

Comments (0)

Files changed (2)

File genscript/standalonetemplate.py

View file
     sys.meta_path.append(importer)
 
     import py
-    py.cmdline.pytest()
+    py.test.cmdline.main()

File makescript.py

View file
+from genscript.pkgpacker import generate_script
+
+with open('script.py', 'w') as f:
+    f.write(generate_script(None, ['py', 'pytest']))