def setUp(self): self.artifactA = artifact.Artifact( { "_id": uuid4(), "name": "artifact-A", "type": "type-A", "documentation": "This is a description of artifact A", "command": ["ls", "-l"], "path": "/", "hash": hashlib.md5().hexdigest(), "git": artifact.artifact.getGit(Path(".")), "cwd": "/", "inputs": [], } ) self.artifactB = artifact.Artifact( { "_id": uuid4(), "name": "artifact-B", "type": "type-B", "documentation": "This is a description of artifact B", "command": ["ls", "-l"], "path": "/", "hash": hashlib.md5().hexdigest(), "git": artifact.artifact.getGit(Path(".")), "cwd": "/", "inputs": [], } ) self.artifactC = artifact.Artifact( { "_id": self.artifactA._id, "name": "artifact-A", "type": "type-A", "documentation": "This is a description of artifact A", "command": ["ls", "-l"], "path": "/", "hash": self.artifactA.hash, "git": artifact.artifact.getGit(Path(".")), "cwd": "/", "inputs": [], } ) self.artifactD = artifact.Artifact( { "_id": uuid4(), "name": "artifact-A", "type": "type-A", "documentation": "This is a description of artifact A", "command": ["ls", "-l"], "path": "/", "hash": hashlib.md5().hexdigest(), "git": artifact.artifact.getGit(Path(".")), "cwd": "/", "inputs": [], } )
def setUp(self): self.artifactA = artifact.Artifact({ '_id': uuid4(), 'name': 'artifact-A', 'type': 'type-A', 'documentation': "This is a description of artifact A", 'command': ['ls', '-l'], 'path': '/', 'hash': hashlib.md5().hexdigest(), 'git': artifact.artifact.getGit(Path('.')), 'cwd': '/', 'inputs': [], }) self.artifactB = artifact.Artifact({ '_id': uuid4(), 'name': 'artifact-B', 'type': 'type-B', 'documentation': "This is a description of artifact B", 'command': ['ls', '-l'], 'path': '/', 'hash': hashlib.md5().hexdigest(), 'git': artifact.artifact.getGit(Path('.')), 'cwd': '/', 'inputs': [], }) self.artifactC = artifact.Artifact({ '_id': self.artifactA._id, 'name': 'artifact-A', 'type': 'type-A', 'documentation': "This is a description of artifact A", 'command': ['ls', '-l'], 'path': '/', 'hash': self.artifactA.hash, 'git': artifact.artifact.getGit(Path('.')), 'cwd': '/', 'inputs': [], }) self.artifactD = artifact.Artifact({ '_id': uuid4(), 'name': 'artifact-A', 'type': 'type-A', 'documentation': "This is a description of artifact A", 'command': ['ls', '-l'], 'path': '/', 'hash': hashlib.md5().hexdigest(), 'git': artifact.artifact.getGit(Path('.')), 'cwd': '/', 'inputs': [], })
def setUp(self): # Create and register an artifact self.testArtifactA = artifact.Artifact.registerArtifact( name="artifact-A", typ="type-A", documentation="This is a description of artifact A", command="ls -l", path="./", cwd="./", ) # Create an artifact without pushing it to the database self.testArtifactB = artifact.Artifact( { "_id": uuid4(), "name": "artifact-B", "type": "type-B", "documentation": "This is a description of artifact B", "command": ["vim test_artifact.py"], "path": "./tests/test_artifact.py", "hash": hashlib.md5().hexdigest(), "git": artifact.artifact.getGit(Path(".")), "cwd": "/", "inputs": [], } )
def setUp(self): # Create and register an artifact self.testArtifactA = artifact.Artifact.registerArtifact( name='artifact-A', typ='type-A', documentation='This is a description of artifact A', command='ls -l', path='./', cwd='./', ) # Create an artifact without pushing it to the database self.testArtifactB = artifact.Artifact({ '_id': uuid4(), 'name': 'artifact-B', 'type': 'type-B', 'documentation': "This is a description of artifact B", 'command': ['vim test_artifact.py'], 'path': './tests/test_artifact.py', 'hash': hashlib.md5().hexdigest(), 'git': artifact.artifact.getGit(Path('.')), 'cwd': '/', 'inputs': [], })
def setUp(self): self.artifact = artifact.Artifact({ '_id': uuid4(), 'name': 'test-name', 'type': 'test-type', 'documentation': "This is a long test documentation that has lots of words", 'command': ['ls', '-l'], 'path': '/', 'hash': hashlib.md5().hexdigest(), 'git': artifact.artifact.getGit(Path('.')), 'cwd': '/', 'inputs': [], })
def setUp(self): self.artifact = artifact.Artifact( { "_id": uuid4(), "name": "test-name", "type": "test-type", "documentation": ( "This is a long test documentation that has " "lots of words" ), "command": ["ls", "-l"], "path": "/", "hash": hashlib.md5().hexdigest(), "git": artifact.artifact.getGit(Path(".")), "cwd": "/", "inputs": [], } )