Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Mar 28, 2024
1 parent 149217f commit 0f8499a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_parser.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import unittest

from bsb import config
from bsb import get_configuration_parser


class TestYAML(unittest.TestCase):
def test_yaml_parse(self):
yaml = config.get_parser("yaml")
yaml = get_configuration_parser("yaml")
tree, meta = yaml.parse("some_key: 5")
self.assertEqual({"some_key": 5}, tree)

def test_yaml_generate(self):
yaml = config.get_parser("yaml")
yaml = get_configuration_parser("yaml")
content = yaml.generate({"some_key": 5})
self.assertEqual("some_key: 5\n", content)

0 comments on commit 0f8499a

Please sign in to comment.