Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Wellbore
Wellbore Domain Services
Commits
0a989851
Commit
0a989851
authored
Jun 28, 2021
by
Luc Yriarte
Browse files
Use proper pytest exception check
parent
a960bafd
Pipeline
#48660
failed with stages
in 22 minutes and 12 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
tests/unit/bulk_persistence/bulk_id_test.py
View file @
0a989851
...
...
@@ -11,6 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
pytest
from
app.bulk_persistence
import
BulkId
import
uuid
...
...
@@ -31,9 +32,5 @@ def test_decode_urn_with_prefix():
assert
prefix
==
'myprefix'
def
test_decode_urn_none
():
uuid
=
None
try
:
with
pytest
.
raises
(
ValueError
):
uuid
,
prefix
=
BulkId
.
bulk_urn_decode
(
None
)
except
ValueError
:
pass
assert
uuid
is
None
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment