Skip to content

Commit

Permalink
Add supported types method
Browse files Browse the repository at this point in the history
  • Loading branch information
nictru committed Jul 25, 2023
1 parent 611f2f7 commit b7eb3a3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
11 changes: 11 additions & 0 deletions easyliftover/types.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import json
import os

def get_file_types():
file_name = "types.json"

script_dir = os.path.dirname(__file__)

json_object = json.load(open(os.path.join(script_dir, file_name), "r"))

return json_object
6 changes: 6 additions & 0 deletions test/test_types.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from easyliftover.types import get_file_types

def test_get_file_types():
types = get_file_types()

assert len(types) > 0

0 comments on commit b7eb3a3

Please sign in to comment.