Skip to content

Commit

Permalink
[tests] Fix DPMAregister test cases
Browse files Browse the repository at this point in the history
It looks like WO number can't be resolved any longer. Here, we used
WO2008034638, and it was resolved to EP2007008279, which stopped
working.
  • Loading branch information
amotl committed Aug 29, 2023
1 parent d3ae29a commit 35efe91
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/access/test_dpma_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ def __exit__(self, exc_type, exc_val, exc_tb):

def test_dpmaregister_url_en():
with F5WafWrapper():
url = access_register("WO2008034638", output_format="url")
assert url == "https://register.dpma.de/DPMAregister/pat/register:showalleverfahrenstabellen?AKZ=EP2007008279&lang=en"
url = access_register("EP666666", output_format="url")
assert url == "https://register.dpma.de/DPMAregister/pat/register:showalleverfahrenstabellen?AKZ=E954800058&lang=en"


def test_dpmaregister_url_de():
with F5WafWrapper():
url = access_register("WO2008034638", output_format="url", language="de")
assert url == "https://register.dpma.de/DPMAregister/pat/register:showalleverfahrenstabellen?AKZ=EP2007008279&lang=de"
url = access_register("EP666666", output_format="url", language="de")
assert url == "https://register.dpma.de/DPMAregister/pat/register:showalleverfahrenstabellen?AKZ=E954800058&lang=de"


def test_dpmaregister_xml():
with F5WafWrapper():
xml = access_register("WO2008034638", output_format="xml")
xml = access_register("EP666666", output_format="xml")
assert '<?xml version="1.0" encoding="UTF-8"?>' in xml
assert "<dpma-patent-document" in xml
assert "<bibliographic-data>" in xml
Expand Down

0 comments on commit 35efe91

Please sign in to comment.