Skip to content

Commit

Permalink
test: changes validation test to be platform-agnostic
Browse files Browse the repository at this point in the history
  • Loading branch information
svituz committed Jan 9, 2024
1 parent bfa963d commit 59b299d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
Expand Down
5 changes: 4 additions & 1 deletion tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

from __future__ import absolute_import
import os
import platform
import tempfile
import unittest

import hl7apy
Expand Down Expand Up @@ -78,7 +80,8 @@ def setUp(self):
'TQ1|||||||||R\r' \
'OBR||83427|83427|LDL^LDL CHOLESTEROL^^LDL||||||||||||ND^UNKNOWN^UNKNOWN\r'

self.report_file = '/tmp/hl7apy_test_rf'
report_file = tempfile.NamedTemporaryFile()
self.report_file = report_file.name

def _create_message(self, msg_str):
return parse_message(msg_str)
Expand Down

0 comments on commit 59b299d

Please sign in to comment.