You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes there are multiple test cases that manipulate the same data in different ways. It is helpful to copy that same data_dir into separate subdirs in work_dir so that afterwards you can inspect the work_dir sub dirs to see what happened.
# in pkunitdefcases_from_same_data_dir(cases):
w=pkunit.work_dir()
foriinrange(len(cases)):
c=w.join(str(i+1))
shutil.copytree(pkunit.data_dir(), c)
cases[i](c)
After the test runs I'll have a work_dir/1, work_dir/2, ..., work_dir/n to inspect. pkunit.case_dirs will call shutil.copytree on an existing work_subdir however which will run an error and not allow for the comparison of different cases effects on the data
Sometimes there are multiple test cases that manipulate the same data in different ways. It is helpful to copy that same data_dir into separate subdirs in work_dir so that afterwards you can inspect the work_dir sub dirs to see what happened.
Example of what this could look like:
After the test runs I'll have a work_dir/1, work_dir/2, ..., work_dir/n to inspect.
pkunit.case_dirs
will call shutil.copytree on an existing work_subdir however which will run an error and not allow for the comparison of different cases effects on the dataThoughts @robnagler ?
The text was updated successfully, but these errors were encountered: