# -*- coding: utf-8 -*-

# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.

from gallery_dl.extractor import pornpics


__tests__ = (
{
    "#url"     : "https://www.pornpics.com/galleries/british-beauty-danielle-flashes-hot-breasts-ass-and-snatch-in-the-forest-62610699/",
    "#category": ("", "pornpics", "gallery"),
    "#class"   : pornpics.PornpicsGalleryExtractor,
    "#pattern" : r"https://cdni\.pornpics\.com/1280/7/160/62610699/62610699_\d+_[0-9a-f]{4}\.jpg",

    "categories": [
        "Outdoor",
        "Boots",
        "MILF",
        "Hairy",
        "Sexy",
        "Pussy",
        "Spreading",
    ],
    "channel"   : ["FTV MILFs"],
    "count"     : 17,
    "gallery_id": 62610699,
    "models"    : ["Danielle Maye"],
    "num"       : int,
    "slug"      : "british-beauty-danielle-flashes-hot-breasts-ass-and-snatch-in-the-forest",
    "tags"      : [
        "MILF Outdoor",
        "Forest",
        "Nature",
        "Pussy Flash",
        "Open Pussy",
        "Hairy Pussy Spread",
        "Thigh High Boots",
        "Sexy MILF",
    ],
    "title"     : "British beauty Danielle flashes hot breasts, ass and snatch in the forest",
    "views"     : int,
},

{
    "#url"     : "https://pornpics.com/es/galleries/62610699",
    "#category": ("", "pornpics", "gallery"),
    "#class"   : pornpics.PornpicsGalleryExtractor,

    "slug": "british-beauty-danielle-flashes-hot-breasts-ass-and-snatch-in-the-forest",
},

{
    "#url"     : "https://www.pornpics.com/galleries/four-american-hotties-in-swimsuit-showing-off-their-sexy-booty-and-bare-legs-59500405/",
    "#comment" : "more than one 'channel' (#5195)",
    "#category": ("", "pornpics", "gallery"),
    "#class"   : pornpics.PornpicsGalleryExtractor,

    "count"     : 16,
    "num"       : range(1, 16),
    "gallery_id": 59500405,
    "slug"      : "four-american-hotties-in-swimsuit-showing-off-their-sexy-booty-and-bare-legs",
    "title"     : "Four American hotties in swimsuit showing off their sexy booty and bare legs",
    "views"     : range(50000, 100000),
    "models"    : [
        "Kayla West",
        "Layla Price",
        "Marley Blaze",
        "Mena Mason",
    ],
    "categories": [
        "Outdoor",
        "Pornstar",
        "Brunette",
        "Blonde",
    ],
    "channel"   : [
        "Adult Time",
        "Fame Digital",
    ],
    "tags"      : [
        "Nudist",
        "Nature",
    ],
},

{
    "#url"     : "https://www.pornpics.com/tags/summer-dress/",
    "#category": ("", "pornpics", "tag"),
    "#class"   : pornpics.PornpicsTagExtractor,
    "#pattern" : pornpics.PornpicsGalleryExtractor.pattern,
    "#range"   : "1-50",
    "#count"   : 50,
},

{
    "#url"     : "https://pornpics.com/fr/tags/summer-dress",
    "#category": ("", "pornpics", "tag"),
    "#class"   : pornpics.PornpicsTagExtractor,
},

{
    "#url"     : "https://www.pornpics.com/?q=nature",
    "#category": ("", "pornpics", "search"),
    "#class"   : pornpics.PornpicsSearchExtractor,
    "#pattern" : pornpics.PornpicsGalleryExtractor.pattern,
    "#range"   : "1-50",
    "#count"   : 50,
},

{
    "#url"     : "https://www.pornpics.com/channels/femjoy/",
    "#category": ("", "pornpics", "search"),
    "#class"   : pornpics.PornpicsSearchExtractor,
    "#pattern" : pornpics.PornpicsGalleryExtractor.pattern,
    "#range"   : "1-50",
    "#count"   : 50,
},

{
    "#url"     : "https://www.pornpics.com/pornstars/emma-brown/",
    "#category": ("", "pornpics", "search"),
    "#class"   : pornpics.PornpicsSearchExtractor,
    "#pattern" : pornpics.PornpicsGalleryExtractor.pattern,
    "#range"   : "1-50",
    "#count"   : 50,
},

{
    "#url"     : "https://pornpics.com/jp/?q=nature",
    "#category": ("", "pornpics", "search"),
    "#class"   : pornpics.PornpicsSearchExtractor,
},

{
    "#url"     : "https://pornpics.com/it/channels/femjoy",
    "#category": ("", "pornpics", "search"),
    "#class"   : pornpics.PornpicsSearchExtractor,
},

{
    "#url"     : "https://pornpics.com/pt/pornstars/emma-brown",
    "#category": ("", "pornpics", "search"),
    "#class"   : pornpics.PornpicsSearchExtractor,
},

{
    "#url"     : "https://www.pornpics.com/pornstars/paige-turnah/",
    "#comment" : "results have less than 20 items per batch (#9022)",
    "#class"   : pornpics.PornpicsSearchExtractor,
    "#pattern" : pornpics.PornpicsGalleryExtractor.pattern,
    "#range"   : "1-75",
    "#count"   : 75,
},

{
    "#url"     : "https://www.pornpics.com/ass/",
    "#category": ("", "pornpics", "category"),
    "#class"   : pornpics.PornpicsCategoryExtractor,
    "#pattern" : pornpics.PornpicsGalleryExtractor.pattern,
    "#range"   : "1-50",
    "#count"   : 50,
},

{
    "#url"     : "https://www.pornpics.com/milf/",
    "#category": ("", "pornpics", "category"),
    "#class"   : pornpics.PornpicsCategoryExtractor,
},

{
    "#url"     : "https://pornpics.com/de/blonde",
    "#category": ("", "pornpics", "category"),
    "#class"   : pornpics.PornpicsCategoryExtractor,
},

{
    "#url"     : "https://www.pornpics.com/popular/",
    "#category": ("", "pornpics", "listing"),
    "#class"   : pornpics.PornpicsListingExtractor,
    "#pattern" : pornpics.PornpicsGalleryExtractor.pattern,
    "#range"   : "1-20",
    "#count"   : 20,
},

{
    "#url"     : "https://www.pornpics.com/recent/",
    "#category": ("", "pornpics", "listing"),
    "#class"   : pornpics.PornpicsListingExtractor,
},

{
    "#url"     : "https://pornpics.com/fr/rating",
    "#category": ("", "pornpics", "listing"),
    "#class"   : pornpics.PornpicsListingExtractor,
},

)
