You've already forked macports-webapp
mirror of
https://github.com/macports/macports-webapp.git
synced 2026-03-31 14:47:02 -07:00
11 lines
232 B
Python
11 lines
232 B
Python
import json
|
|
|
|
from port.models import Port
|
|
from config import TEST_PORTINDEX_JSON
|
|
|
|
|
|
def setup_test_data():
|
|
with open(TEST_PORTINDEX_JSON, 'r') as file:
|
|
data = json.load(file)
|
|
Port.add_or_update(data.get('ports', []))
|