Skip to content

Commit

Permalink
fix(deps): Bump version of dragonfly-core
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswmackey authored and Chris Mackey committed Jan 20, 2021
1 parent 08ef3dc commit 58d2516
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 22 deletions.
13 changes: 13 additions & 0 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 1
update_configs:
- package_manager: "python"
directory: "/"
update_schedule: "live"
automerged_updates:
- match:
dependency_type: "all"
update_type: "all"
commit_message:
prefix: "fix"
prefix_development: "chore"
include_scope: true
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dragonfly-core==1.27.2
dragonfly-core==1.27.5
uwg==5.8.3
28 changes: 15 additions & 13 deletions tests/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@
from ladybug.futil import nukedir

import os
import sys


def test_simulate_idf():
runner = CliRunner()
input_model = './tests/json/model_complete_simple.dfjson'
input_epw = './tests/epw/singapore.epw'
input_sim_par = './tests/json/uwg_sim_par.json'
if (sys.version_info >= (3, 0)):
runner = CliRunner()
input_model = './tests/json/model_complete_simple.dfjson'
input_epw = './tests/epw/singapore.epw'
input_sim_par = './tests/json/uwg_sim_par.json'

result = runner.invoke(
simulate_model, [input_model, input_epw, '--sim-par-json', input_sim_par])
assert result.exit_code == 0
result = runner.invoke(
simulate_model, [input_model, input_epw, '--sim-par-json', input_sim_par])
assert result.exit_code == 0

epw_dir = os.path.join(folders.default_epw_folder, 'NewDevelopment')
output_json = os.path.join(epw_dir, 'NewDevelopment_uwg.json')
output_epw = os.path.join(epw_dir, 'NewDevelopment.epw')
assert os.path.isfile(output_json)
assert os.path.isfile(output_epw)
nukedir(epw_dir)
epw_dir = os.path.join(folders.default_epw_folder, 'NewDevelopment')
output_json = os.path.join(epw_dir, 'NewDevelopment_uwg.json')
output_epw = os.path.join(epw_dir, 'NewDevelopment.epw')
assert os.path.isfile(output_json)
assert os.path.isfile(output_epw)
nukedir(epw_dir)
18 changes: 10 additions & 8 deletions tests/run_test.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# coding=utf-8
import os
import sys

from ladybug.dt import Date

Expand All @@ -11,13 +12,14 @@

def test_run_uwg():
"""Test the running of a model through the UWG."""
model = two_buildings()
if (sys.version_info >= (3, 0)):
model = two_buildings()

uwg_par = UWGSimulationParameter()
uwg_par.run_period.end_date = Date(1, 7)
uwg_par = UWGSimulationParameter()
uwg_par.run_period.end_date = Date(1, 7)

epw_path = './tests/epw/boston.epw'
uwg_json, urban_epw = run_uwg(model, epw_path, uwg_par)

assert os.path.isfile(uwg_json)
assert os.path.isfile(urban_epw)
epw_path = './tests/epw/boston.epw'
uwg_json, urban_epw = run_uwg(model, epw_path, uwg_par)
assert os.path.isfile(uwg_json)
assert os.path.isfile(urban_epw)

0 comments on commit 58d2516

Please sign in to comment.