ForgetClone(bool allClones, string cloneName) { if (allClones) { PyRevitClones.UnregisterAllClones(); } else { PyRevitClones.UnregisterClone( PyRevitClones.GetRegisteredClone(cloneName) ); } }
public void DeployFromImage_Full_Test() { var testCloneBranch = PyRevitLabsConsts.TragetBranch; PyRevitClones.DeployFromImage( cloneName: testCloneName, deploymentName: null, branchName: null, imagePath: null, destPath: TempPath ); var clone = PyRevitClones.GetRegisteredClone(testCloneName); PyRevitClones.UnregisterClone(clone); Assert.AreEqual(testCloneBranch, clone.Branch, string.Format("{0} != {1}", testCloneBranch, clone.Branch)); }
public void DeployFromRepo_Develop_Test() { var testCloneBranch = PyRevitLabsConsts.TragetBranch; PyRevitClones.DeployFromRepo( cloneName: testCloneName, deploymentName: null, branchName: testCloneBranch, repoUrl: null, destPath: TempPath ); var clone = PyRevitClones.GetRegisteredClone(testCloneName); PyRevitClones.UnregisterClone(clone); Assert.IsTrue(clone.IsRepoDeploy); Assert.AreEqual(testCloneBranch, clone.Branch); }