Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
tcezard committed Dec 27, 2017
1 parent 679b867 commit 6a228c1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/test_descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,28 +772,13 @@ def get_queue_art(self, art_id, pos, microsec, time_delta):

def test_parse(self):
queued_artifacts = QueuedArtifactList(self.instance1)
# qart = (
# Artifact(self.lims, id='a1'),
# datetime.datetime(2011, 12, 25, 1, 10, 10, 50000, tzinfo=datetime.timezone.utc),
# (Container(self.lims, id='c1'), 'A:1')
# )
qart = self.get_queue_art('a1', 'A:1', 50000, datetime.timedelta(0, 0))
assert queued_artifacts[0] == qart
# qart = (
# Artifact(self.lims, id='a2'),
# datetime.datetime(2011, 12, 25, 1, 10, 10, 200000, tzinfo=datetime.timezone(datetime.timedelta(second=3600))),
# (Container(self.lims, id='c1'), 'A:2')
# )
qart = self.get_queue_art('a2', 'A:2', 200000, datetime.timedelta(0, 3600))
assert queued_artifacts[1] == qart

def test_set(self):
queued_artifacts = QueuedArtifactList(self.instance1)
# qart = (
# Artifact(self.lims, id='a3'),
# datetime.datetime(2011, 12, 25, 1, 10, 11, 50000, tzinfo=datetime.timezone.utc),
# (Container(self.lims, id='c1'), 'A:3')
# )
qart = self.get_queue_art('a1', 'A:3', 50000, datetime.timedelta(0, 0))
with pytest.raises(NotImplementedError):
queued_artifacts.append(qart)
Expand Down

0 comments on commit 6a228c1

Please sign in to comment.