source | issues

Workdir Testcases

this is a series of functional tests each begins at a given state and runs a series of actions, asserting the workdir state between each

test_diff_all(wd)[source]
  • change a known file
  • check the diff
test_file_missing(wd)[source]
  • delete a known file (just in the workdir)
  • check the missing state
test_status_subdir_only(wd)[source]
  • add a file in a subdir
  • commit
  • change the file in the subdir
  • check status for the subdir only returning items of that subdir
test_subdir_state_add(wd)[source]
  • add a file in a subdir
test_workdir_add(wd)[source]
  • add a unknown file
  • commit it
test_workdir_open(wd, backend)[source]

check if anyvc.workdir.open works as expected

test_workdir_open_honors_ANYVC_IGNORED_WORKDIRS(monkeypatch, wd)[source]

check that anyvc.workdir.open() honors ANYVC_IGNORED_WORKDIRS

test_workdir_remove(wd)[source]
  • remove a known file
  • commit the removal
test_workdir_rename(wd)[source]
  • rename a known file
  • check the add/remove pair
  • commit
test_workdir_revert(wd)[source]
  • remove a known file (vcs command)
  • revert
  • change the content of a known file
  • revert