summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/tests/test_network_function.py
diff options
context:
space:
mode:
authorefiacor <fiachra.corcoran@est.tech>2020-05-20 15:18:41 +0100
committerefiacor <fiachra.corcoran@est.tech>2020-05-25 08:50:24 +0100
commit5ed9b7d3cad56c6438bca305b6d2931bd320352b (patch)
treeb05cbb4e7215e9b6b9aead2a1ae45d63330c0761 /components/pm-subscription-handler/tests/test_network_function.py
parent9a57e9a2e2357f267c6a7c804488011ac97beab5 (diff)
[PMSH] Adding 'subscriptions' api endpoint
Signed-off-by: efiacor <fiachra.corcoran@est.tech> Change-Id: I837045b3b618a98d4aabe190359d0ad47f27ca9f Issue-ID: DCAEGEN2-2154
Diffstat (limited to 'components/pm-subscription-handler/tests/test_network_function.py')
-rwxr-xr-xcomponents/pm-subscription-handler/tests/test_network_function.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/components/pm-subscription-handler/tests/test_network_function.py b/components/pm-subscription-handler/tests/test_network_function.py
index 4fca0778..138d99ad 100755
--- a/components/pm-subscription-handler/tests/test_network_function.py
+++ b/components/pm-subscription-handler/tests/test_network_function.py
@@ -71,7 +71,8 @@ class NetworkFunctionTests(TestCase):
self.nf_1.create()
self.nf_2.create()
sub = Subscription(**{"subscriptionName": "sub"})
- sub.add_network_functions_to_subscription([self.nf_1, self.nf_2])
+ for nf in [self.nf_1, self.nf_2]:
+ sub.add_network_function_to_subscription(nf)
NetworkFunction.delete(nf_name=self.nf_1.nf_name)