Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(9) | Call(9) | Derive(0) | Import(0)
Create package(s) dynamically. Overwrite the write method to add the NSPackages and Packages entry before skeleton write, and create the list of package they hold after the skeleton write.
src/s/k/skeleton-0.6/skeleton/tests/test_examples.py skeleton(Download)
with TempDir() as tmp: skel.write(tmp.path) self.assertEqual(skel['ns_packages'], [])
with TempDir() as tmp: skel.write(tmp.path) self.assertTrue(tmp.exists('LICENSE'))
with TempDir() as tmp: skel.write(tmp.path) self.assertEqual(set(skel['ns_packages']), set(['foo', 'foo.bar']))
src/s/k/skeleton_stu-0.6.3/skeleton/tests/test_examples.py skeleton_stu(Download)
with TempDir() as tmp: skel.write(tmp.path) self.assertEqual(skel['ns_packages'], [])
with TempDir() as tmp: skel.write(tmp.path) self.assertTrue(tmp.exists('LICENSE'))
with TempDir() as tmp: skel.write(tmp.path) self.assertEqual(set(skel['ns_packages']), set(['foo', 'foo.bar']))
src/s/k/skeleton-HEAD/skeleton/tests/test_examples.py skeleton(Download)
with TempDir() as tmp: skel.write(tmp.path) self.assertEqual(skel['ns_packages'], [])
with TempDir() as tmp: skel.write(tmp.path) self.assertTrue(tmp.exists('LICENSE'))
with TempDir() as tmp: skel.write(tmp.path) self.assertEqual(set(skel['ns_packages']), set(['foo', 'foo.bar']))