def test_blueprint_validate_committed(self, exit, ex, get_c, get_d, del_t, bp_validate, create_r, is_c):
        # Arrange
        bp_validate.return_value = Mock(errors="")

        current_branch = self._repo.active_branch.name

        # is_current_branch_synced.return_value = False
        for current_branch_sync_state in [True, False]:
            is_c.return_value = current_branch_sync_state

            # Act
            sys.argv[1:] = ["--debug", "bp", "validate", "test2"]
            shell.main()

            # Assert
            self._assert_untracked_reverted_without_untracked()
            self._assert_dirty_state_reverted_clean()
            self._assert_branch_states_reverted(current_branch)
Beispiel #2
0
from colony.shell import main

if __name__ == "__main__":
    main()