Skip to content
Snippets Groups Projects

Resolve "Introduce a new filter for when rules should be run based on the source ID of a building."

All threads resolved!
Compare and Show latest version
2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 2
2
@@ -106,10 +106,10 @@ def boundary_filter_rule():
def source_id_filter_rule():
tmp_dir = tempfile.mkdtemp()
file_path = os.path.join(tmp_dir, "source_id_filter")
shutil.make_archive(file_path, "zip", "tests/data/source_id_filter")
shutil.make_archive(filepath, "zip", "tests/data/source_id_filter")
# Yield rule.
yield Rule.load_rule_from_zip(open(file_path + ".zip", "rb"))
yield Rule.load_rule_from_zip(open(filepath + ".zip", "rb"))
# Remove temporary ZIP file.
shutil.rmtree(tmp_dir, ignore_errors=True)
Loading