Skip to content

Commit

Permalink
fixing use of tmpdir -> tmp_path
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Apr 30, 2024
1 parent 797d7a6 commit cea5fb5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: continuous integration
on:
push

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

styling:
Expand Down
8 changes: 0 additions & 8 deletions libraries/ashrae/223p/ontology/223p.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -2409,14 +2409,6 @@ g36:FanWithVFDAnnotation a sh:NodeShape ;
sh:subject sh:this ] ;
sh:targetClass s223:Fan .

g36:FilterAnnotation a sh:NodeShape ;
sh:rule [ a sh:TripleRule ;
sh:condition g36:Filter ;
sh:object g36:Filter ;
sh:predicate rdf:type ;
sh:subject sh:this ] ;
sh:targetClass s223:AirFilter .

g36:HotWaterCoilAnnotation a sh:NodeShape ;
sh:rule [ a sh:TripleRule ;
rdfs:comment "If an instance of s223:HeatingCoil matches the constraints defined by g36:HotWaterCoil, it will be declared as an instance of that class." ;
Expand Down
5 changes: 3 additions & 2 deletions tests/integration/test_database_persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
EXAMPLE_TRIPLE = (URIRef("http://example.org/alex"), RDF.type, FOAF.Person)


def test_database_persistence(tmpdir):
def test_database_persistence(tmp_path):
# create bm
db_path = f"sqlite:///{tmpdir}/db.db"
path = tmp_path / "db.db"
db_path = f"sqlite:///{path}"
bm = BuildingMOTIF(db_path)
bm.setup_tables()

Expand Down

0 comments on commit cea5fb5

Please sign in to comment.