-
-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Smoking outside tuning #3865
Smoking outside tuning #3865
Conversation
In the UK at least it's quite common, particular outside nightclubs, to have a small fenced area where people can smoke without having to leave the area the club controls (and pay for a new ticket etc). This fenced area is often on the pavement and may not have seating, which might break your current logic here. See some average to rubbish photos of the like here: |
app/src/main/java/de/westnordost/streetcomplete/quests/smoking/AddSmoking.kt
Outdated
Show resolved
Hide resolved
thanks @peternewman that is quite informative! I'm now undecided, should I just add the exception for |
Maybe pubs too as it might apply to some of the more clubby/youth ones, its more about having to queue for entry, possibly pay and/or have ID checks. I don't think cafes or restaurants will have the queue/pay/ID issues, so probably won't bother. They're also more likely (possibly along with some pubs) to have outdoor seating at which point that bit kicks in too. |
…club need not to have any seating to be eligible so rewrite https://github.com/streetcomplete/StreetComplete/pull/3865/files#r825499349
as "indoor_seating != no evaluates to true if indoor_seating is either not set or its value not equal to no" see streetcomplete#3865 (comment)
I've created |
app/src/test/java/de/westnordost/streetcomplete/quests/smoking/AddSmokingTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/de/westnordost/streetcomplete/quests/smoking/AddSmokingTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/de/westnordost/streetcomplete/quests/smoking/AddSmokingTest.kt
Outdated
Show resolved
Hide resolved
…/AddSmokingTest.kt group test together Co-authored-by: Flo Edelmann <florian-edelmann@online.de>
…/AddSmokingTest.kt group test together Co-authored-by: Flo Edelmann <florian-edelmann@online.de>
…/AddSmokingTest.kt fix nightclub test Co-authored-by: Flo Edelmann <florian-edelmann@online.de>
Thanks for suggestions, @FloEdelmann! Do you know how/when those tests are actually run? |
The tests are not run at all on GitHub Actions, they have to be run locally: Either via Android Studio, or in the commandline:
|
Thanks @FloEdelmann , I've added that command (in my fork GitHub workflow) to run tests, and it passes the checks now. One more question: do you know if it is possible to check whether some option is shown in the list of answers or not? Smoking quest sometimes offers |
Unfortunately, I don't know if that's possible here. Maybe only in the instrumented tests that have access to the Android runtime. |
Thanks @FloEdelmann, I though that it might be more complicated... Then this is ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
This PR tries to address superfluous
OUTSIDE
answer when it should be hidden, as reported in #3856OUTSIDE
answer if it is known that there is no smoking possible outside (no outside seating, and no standing smoking area like in nightclub)