Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Commit

Permalink
fix: build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
weliasz committed Sep 24, 2021
1 parent 44dbdb6 commit c465e9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion splunk_connect_for_snmp_mib_server/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
# ########################################################################
import logging
import os
import yaml

import yaml
from yaml.parser import ParserError

logger = logging.getLogger(__name__)


def merge_profiles(directory, root_name):
result = {}
merged_profiles = {}
Expand Down
6 changes: 3 additions & 3 deletions tests/test_profile_merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def test_one_file(self):
assert "basev1l2" in merged_profiles.keys()

def test_same_name_profiles_were_overwritten_in_alphabetical_order(self):
merged_profiles = merge_profiles("tests/profiles/same_name_profiles", "profiles")[
"profiles"
]
merged_profiles = merge_profiles(
"tests/profiles/same_name_profiles", "profiles"
)["profiles"]

assert len(merged_profiles.keys()) == 2
assert "basev1" in merged_profiles.keys()
Expand Down

0 comments on commit c465e9b

Please sign in to comment.