File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
src/mavedb/lib/validation Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- import re
21from typing import Optional
32
43from mavedb .lib .validation .exceptions import ValidationError
54from mavedb .lib .validation .utilities import is_null
65
76
87def validate_code (key : str , label : str , code : Optional [str ]):
9- # TODO Re-enable this when we have GO codes for all phenotypic assay mechanisms .
8+ # TODO(#511) Re-enable the Gene Ontology code requirement .
109 pass
1110 # if key.lower() == "phenotypic assay mechanism" and label.lower() != "other":
1211 # # The Gene Ontology accession is a unique seven digit identifier prefixed by GO:.
Original file line number Diff line number Diff line change @@ -46,12 +46,13 @@ def test_Gene_Ontology_valid_accession(self):
4646 code = "GO:1234567"
4747 validate_code (key , label , code )
4848
49- def test_Gene_Ontology_invalid_accession (self ):
50- key = "Phenotypic Assay Mechanism"
51- label = "label"
52- code = "GO:123"
53- with self .assertRaises (ValidationError ):
54- validate_code (key , label , code )
49+ # TODO(#511) Re-enable the Gene Ontology code requirement.
50+ # def test_Gene_Ontology_invalid_accession(self):
51+ # key = "Phenotypic Assay Mechanism"
52+ # label = "label"
53+ # code = "GO:123"
54+ # with self.assertRaises(ValidationError):
55+ # validate_code(key, label, code)
5556
5657 def test_Gene_Ontoloty_term_is_other (self ):
5758 key = "Phenotypic Assay Mechanism"
You can’t perform that action at this time.
0 commit comments