Skip to content

Commit

Permalink
Update test_decorator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen authored Oct 30, 2024
1 parent 32d275b commit 43bfd3d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/unit/flex/test_decorator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pyiron_base._tests import TestWithProject
from pyiron_base import pyiron_job
from pyiron_base import job
import unittest


Expand All @@ -8,11 +8,11 @@ def tearDown(self):
self.project.remove_jobs(recursive=True, silently=True)

def test_delayed(self):
@pyiron_job()
@job()
def my_function_a(a, b=8):
return a + b

@pyiron_job(cores=2)
@job(cores=2)
def my_function_b(a, b=8):
return a + b

Expand All @@ -24,11 +24,11 @@ def my_function_b(a, b=8):
self.assertEqual(len(edges_lst), 6)

def test_delayed_simple(self):
@pyiron_job
@job
def my_function_a(a, b=8):
return a + b

@pyiron_job
@job
def my_function_b(a, b=8):
return a + b

Expand Down

0 comments on commit 43bfd3d

Please sign in to comment.