mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 13:46:54 +00:00
Fix light and georeference feature tests
Not setting the year meant our date calc tests would fail every year :)
This commit is contained in:
@@ -9,14 +9,16 @@ Scenario: Viewing default solar settings
|
||||
Scenario: Changing the month
|
||||
Given an empty IFC project
|
||||
And I look at the "Solar Access / Shadow" panel
|
||||
When I set the "January" property to "3"
|
||||
When I set the "Year" property to "2024"
|
||||
And I set the "January" property to "3"
|
||||
Then I see "March"
|
||||
And I see "Sunrise: 06:08:54"
|
||||
|
||||
Scenario: Changing the date
|
||||
Given an empty IFC project
|
||||
And I look at the "Solar Access / Shadow" panel
|
||||
When I set the "Date" property to "3"
|
||||
When I set the "Year" property to "2024"
|
||||
And I set the "Date" property to "3"
|
||||
Then I see "Sunrise: 06:00:31"
|
||||
|
||||
Scenario: Changing the time
|
||||
@@ -29,6 +31,7 @@ Scenario: Changing the time
|
||||
Scenario: Automatic timezone detection based on lat / long
|
||||
Given an empty IFC project
|
||||
And I look at the "Solar Access / Shadow" panel
|
||||
And I set the "Year" property to "2024"
|
||||
When I set the "Latitude" property to "10.0"
|
||||
And I set the "Longitude" property to "20.0"
|
||||
Then I see "Africa/Ndjamena"
|
||||
|
||||
@@ -274,8 +274,8 @@ def i_see_the_prop_property(prop):
|
||||
@then(parsers.parse('I don\'t see the "{prop}" property'))
|
||||
def i_dont_see_the_prop_property(prop):
|
||||
panel_spy.refresh_spy()
|
||||
assert [
|
||||
p for p in panel_spy.spied_props if prop not in (p["name"], p["text"], p["icon"])
|
||||
assert not [
|
||||
p for p in panel_spy.spied_props if prop in (p["name"], p["text"], p["icon"])
|
||||
], f"Property {prop} not found in {panel_spy.spied_props}"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user