https://bugs.kde.org/show_bug.cgi?id=482357

            Bug ID: 482357
           Summary: hafasmgaterequesttest and efarequesttest fail based on
                    unknown l10n/i18n factors
    Classification: Frameworks and Libraries
           Product: KPublicTransport
           Version: 23.08.5
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: vkra...@kde.org
          Reporter: eternal...@gmail.com
  Target Milestone: ---

STEPS TO REPRODUCE
1. Build kpublictransport with the C.UTF-8 locale, in Washington State (USA),
possibly other factors
2. Run the tests

OBSERVED RESULT

    FAIL!  : HafasMgateRequestTest::testStopoverRequest(id-based-default)
Compared values are not the same
       Actual   (m_nam.requests[0].data):
"{\"auth\":{\"aid\":\"n91dB8Z77MLdoR0K\",\"type\":\"AID\"},\"client\":{\"id\":\"DB\",\"name\":\"DB
Navigator\",\"type\":\"AND\",\"v\":19040000},\"ext\":\"DB.R20.12.b\",\"formatted\":false,\"lang\":\"de\",\"svcReqL\":[{\"meth\":\"StationBoard\",\"r"...
   Expected (postData)              :
"{\"auth\":{\"aid\":\"n91dB8Z77MLdoR0K\",\"type\":\"AID\"},\"client\":{\"id\":\"DB\",\"name\":\"DB
Navigator\",\"type\":\"AND\",\"v\":19040000},\"ext\":\"DB.R20.12.b\",\"formatted\":false,\"lang\":\"en\",\"svcReqL\":[{\"meth\":\"StationBoard\",\"r"...
       Loc: [/kpublictransport-23.08.5/autotests/hafasmgaterequesttest.cpp(95)]
    (more, similar lines)


    32:    Actual   (url)       :
https://www2.vvs.de/vvs/XML_DM_REQUEST?outputFormat=XML&coordOutputFormat=WGS84[DD.ddddd]&language=de&type_dm=stop&name_dm=12345&itdDate=20230625&itdTime=0939&useRealtime=1&limit=12&mode=direct&ptOptionsActive=1&merge_dep=1&stateless=1&sessionID=0&requestID=0
    32:    Expected (requestUrl):
https://www2.vvs.de/vvs/XML_DM_REQUEST?outputFormat=XML&coordOutputFormat=WGS84[DD.ddddd]&language=en&type_dm=stop&name_dm=12345&itdDate=20230625&itdTime=0939&useRealtime=1&limit=12&mode=direct&ptOptionsActive=1&merge_dep=1&stateless=1&sessionID=0&requestID=0
    32:    Loc: [/kpublictransport-23.08.5/autotests/efarequesttest.cpp(77)]
    (more, similar lines)

EXPECTED RESULT

These tests (where the only difference is expecting language "en" and receiving
language "de") passing.

SOFTWARE/OS VERSIONS
Distro: Exherbo Linux, kernel 6.3.6
KDE Plasma Version: Plasma 23.08.0 updating to 23.08.5
KDE Frameworks Version: KDE Frameworks 5.110.0 updating to 5.115.0
Qt Version: 5.15.12 (relevant to this package) and 6.6.2

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to