Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Mar 18, 2024
1 parent dd8219d commit ba77770
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions daliuge-engine/test/test_dask_emulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import json
import os
import pytest
import shutil
import unittest

import numpy as np
Expand Down Expand Up @@ -195,23 +194,13 @@ def test_with_kwargs(self):
compute = self.compute

self.assertEqual(compute(delayed(sum_with_kwargs)(1)), 1)
# self.assertEqual(compute(delayed(sum_with_kwargs)(1, b=20)), 21)
# self.assertEqual(
# compute(delayed(sum_with_kwargs)(1, b=20, x=-111)), 21
# )

def test_with_args_and_kwargs(self):
"""Tests that delayed() works correctly with kwargs"""
delayed = self.delayed
compute = self.compute

self.assertEqual(compute(delayed(sum_with_args_and_kwarg)(1)), 1)
# self.assertEqual(
# compute(delayed(sum_with_args_and_kwarg)(1, 20, b=100, x=-1000)), 121
# )
# self.assertEqual(
# compute(delayed(sum_with_args_and_kwarg)(1, 20, 30, b=100, x=-2000)), 151
# )

def test_with_user_defined_default(self):
"""Tests that delayed() works with default values that are not json-dumpable"""
Expand Down Expand Up @@ -263,11 +252,6 @@ def compute(self, val):
class TestDlgDelayed(_TestDelayed, unittest.TestCase):
"""dlg-base tests, they start/stop the node manager and use dlg_delayed"""

# @pytest.fixture(autouse=True)
# def change_test_dir(self, request, monkeypatch):
# print(f">>>>> path: {request.fspath.dirname}")
# monkeypatch.chdir(request.fspath.dirname)

def delayed(self, f, *args, **kwargs):
return dlg_delayed(f, *args, **kwargs)

Expand Down

0 comments on commit ba77770

Please sign in to comment.