Skip to content

Commit

Permalink
Merge pull request #741 from dibryant/test-notebooks
Browse files Browse the repository at this point in the history
update test versions for 3.11
  • Loading branch information
openshift-merge-bot[bot] authored Oct 10, 2024
2 parents 0fc2e6b + 9ba689f commit 2b18f5c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
10 changes: 5 additions & 5 deletions jupyter/datascience/ubi9-python-3.11/test/test_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"\n",
"class TestNumpy(unittest.TestCase):\n",
" def test_version(self):\n",
" expected_major_minor = '1.26'\n",
" expected_major_minor = '2.1'\n",
" actual_major_minor = get_major_minor(np.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand All @@ -119,7 +119,7 @@
"\n",
"class TestScipy(unittest.TestCase):\n",
" def test_version(self):\n",
" expected_major_minor = '1.12'\n",
" expected_major_minor = '1.14'\n",
" actual_major_minor = get_major_minor(scipy.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand All @@ -136,7 +136,7 @@
"\n",
"class TestSKLearn(unittest.TestCase):\n",
" def test_version(self):\n",
" expected_major_minor = '1.4'\n",
" expected_major_minor = '1.5'\n",
" actual_major_minor = get_major_minor(sklearn.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand All @@ -160,7 +160,7 @@
"class TestMatplotlib(unittest.TestCase):\n",
"\n",
" def test_version(self):\n",
" expected_major_minor = '3.8'\n",
" expected_major_minor = '3.9'\n",
" actual_major_minor = get_major_minor(matplotlib.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand Down Expand Up @@ -193,7 +193,7 @@
"class TestBoto3(unittest.TestCase):\n",
"\n",
" def test_version(self):\n",
" expected_major_minor = '1.34'\n",
" expected_major_minor = '1.35'\n",
" actual_major_minor = get_major_minor(boto3.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions jupyter/minimal/ubi9-python-3.11/test/test_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"\n",
"class TestDependenciesVersions(unittest.TestCase):\n",
" def test_jupyter_version(self):\n",
" expected_major_minor = '3.6'\n",
" expected_major_minor = '4.2'\n",
" actual_major_minor = get_major_minor(jp.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand All @@ -34,7 +34,7 @@
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
" def test_nbdime_version(self):\n",
" expected_major_minor = '3.2'\n",
" expected_major_minor = '4.0'\n",
" actual_major_minor = get_major_minor(nbdime.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion jupyter/pytorch/ubi9-python-3.11/test/test_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
" \n",
" def test_torch_version(self):\n",
" expected_major_minor = '2.2' # Set the expected version (x.y)\n",
" expected_major_minor = '2.4' # Set the expected version (x.y)\n",
" actual_major_minor = '.'.join(torch.__version__.split('.')[:2]) \n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
" \n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
" \n",
" def test_tensorflow_version(self):\n",
" expected_major_minor = '2.15' # Set the expected version (x.y)\n",
" expected_major_minor = '2.17' # Set the expected version (x.y)\n",
" actual_major_minor = '.'.join(tf.__version__.split('.')[:2]) \n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
" \n",
Expand Down
12 changes: 6 additions & 6 deletions jupyter/trustyai/ubi9-python-3.11/test/test_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"\n",
"class TestDependenciesVersions(unittest.TestCase):\n",
" def test_jupyter_version(self):\n",
" expected_major_minor = '3.6'\n",
" expected_major_minor = '4.2'\n",
" actual_major_minor = get_major_minor(jp.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand All @@ -55,7 +55,7 @@
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
" def test_nbdime_version(self):\n",
" expected_major_minor = '3.2'\n",
" expected_major_minor = '4.0'\n",
" actual_major_minor = get_major_minor(nbdime.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand Down Expand Up @@ -141,7 +141,7 @@
"\n",
"class TestScipy(unittest.TestCase):\n",
" def test_version(self):\n",
" expected_major_minor = '1.12'\n",
" expected_major_minor = '1.14'\n",
" actual_major_minor = get_major_minor(scipy.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand All @@ -158,7 +158,7 @@
"\n",
"class TestSKLearn(unittest.TestCase):\n",
" def test_version(self):\n",
" expected_major_minor = '1.4'\n",
" expected_major_minor = '1.2'\n",
" actual_major_minor = get_major_minor(sklearn.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand Down Expand Up @@ -192,7 +192,7 @@
"class TestKafkaPython(unittest.TestCase):\n",
"\n",
" def test_version(self):\n",
" expected_major_minor = '2.0'\n",
" expected_major_minor = '2.2'\n",
" actual_major_minor = get_major_minor(kafka.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand All @@ -214,7 +214,7 @@
"class TestBoto3(unittest.TestCase):\n",
"\n",
" def test_version(self):\n",
" expected_major_minor = '1.34'\n",
" expected_major_minor = '1.35'\n",
" actual_major_minor = get_major_minor(boto3.__version__)\n",
" self.assertEqual(actual_major_minor, expected_major_minor, \"incorrect version\")\n",
"\n",
Expand Down

0 comments on commit 2b18f5c

Please sign in to comment.