pytest框架之fixture詳細使用

當我們使用pytest框架寫case的時候,一定要拿它的命令規(guī)范去case桥嗤,這樣框架才能識別到哪些case需要執(zhí)行监右,哪些不需要執(zhí)行。

用例設(shè)計原則

文件名以test_*.py文件和*_test.py

以test_開頭的函數(shù)

以Test開頭的類

以test_開頭的方法


fixture可以當做參數(shù)傳入

定義fixture跟定義普通函數(shù)差不多栽燕,唯一區(qū)別就是在函數(shù)上加個裝飾器@pytest.fixture(),fixture命名不要以test開頭改淑,跟用例區(qū)分開碍岔。fixture是有返回值得,沒有返回值默認為None朵夏。用例調(diào)用fixture的返回值蔼啦,直接就是把fixture的函數(shù)名稱當做變量名稱。

ex:

import pytest

@pytest.fixture()def test1():

? ? a ='leo'return adef test2(test1):

? ? asserttest1 =='leo'if__name__=='__main__':

? ? pytest.main('-q test_fixture.py')

輸出:============================= test session starts =============================platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\exercise, inifile:collected 1 item

test_fixture.py .? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%]========================== 1 passedin0.02 seconds ===========================Process finished with exit code 0



使用多個fixture

如果用例需要用到多個fixture的返回數(shù)據(jù)仰猖,fixture也可以返回一個元祖捏肢,list或字典,然后從里面取出對應(yīng)數(shù)據(jù)饥侵。

ex:


import pytest

@pytest.fixture()def test1():

? ? a ='leo'? ? b ='123456'print('傳出a,b')

? ? return (a, b)def test2(test1):

? ? u = test1[0]

? ? p = test1[1]

? ? assertu =='leo'assertp =='123456'print('元祖形式正確')if__name__=='__main__':

? ? pytest.main('-q test_fixture.py')

輸出結(jié)果:

platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\exercise, inifile:collected 1 item

test_fixture.py 傳出a,b

.元祖形式正確

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%]========================== 1 passedin0.02 seconds ===========================Process finished with exit code 0


?當然也可以分成多個fixture鸵赫,然后在用例中傳多個fixture參數(shù)

import pytest

@pytest.fixture()def test1():

? ? a ='leo'print('\n傳出a')

? ? return a

@pytest.fixture()def test2():

? ? b ='123456'print('傳出b')

? ? return bdef test3(test1, test2):

? ? u = test1

? ? p = test2

? ? assertu =='leo'assertp =='123456'print('傳入多個fixture參數(shù)正確')if__name__=='__main__':

? ? pytest.main('-q test_fixture.py')

輸出結(jié)果:============================= test session starts =============================platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\exercise, inifile:collected 1 item

test_fixture.py

傳出a

傳出b

.傳入多個fixture參數(shù)正確


fixture互相調(diào)用

import pytest

@pytest.fixture()def test1():

? ? a ='leo'print('\n傳出a')

? ? return adef test2(test1):

? ? asserttest1 =='leo'print('fixture傳參成功')if__name__=='__main__':

? ? pytest.main('-q test_fixture.py')

輸出結(jié)果:

platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\exercise, inifile:collected 1 item

test_fixture.py

傳出a

.fixture傳參成功

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%]========================== 1 passedin0.03 seconds ===========================Process finished with exit code 0


介紹完了fixture的使用方式,現(xiàn)在介紹一下fixture的作用范圍(scope)


fixture的作用范圍

fixture里面有個scope參數(shù)可以控制fixture的作用范圍:session>module>class>function

-function:每一個函數(shù)或方法都會調(diào)用

-class:每一個類調(diào)用一次躏升,一個類中可以有多個方法

-module:每一個.py文件調(diào)用一次辩棒,該文件內(nèi)又有多個function和class

-session:是多個文件調(diào)用一次,可以跨.py文件調(diào)用,每個.py文件就是module


fixture源碼詳解

fixture(scope='function'一睁,params=None钻弄,autouse=False,ids=None者吁,name=None):

scope:有四個級別參數(shù)"function"(默認)窘俺,"class","module"复凳,"session"

params:一個可選的參數(shù)列表瘤泪,它將導致多個參數(shù)調(diào)用fixture功能和所有測試使用它。

autouse:如果True育八,則為所有測試激活fixture func可以看到它对途。如果為False則顯示需要參考來激活fixture

ids:每個字符串id的列表,每個字符串對應(yīng)于params這樣他們就是測試ID的一部分单鹿。如果沒有提供ID它們將從params自動生成

name:fixture的名稱掀宋。這默認為裝飾函數(shù)的名稱。如果fixture在定義它的統(tǒng)一模塊中使用仲锄,夾具的功能名稱將被請求夾具的功能arg遮蔽劲妙,解決這個問題的一種方法時將裝飾函數(shù)命令"fixture_<fixturename>"然后使用"@pytest.fixture(name='<fixturename>')"。


具體闡述一下scope四個參數(shù)的范圍

scope="function"

@pytest.fixture()如果不寫參數(shù)儒喊,參數(shù)就是scope="function"镣奋,它的作用范圍是每個測試用例來之前運行一次,銷毀代碼在測試用例之后運行怀愧。

import pytest

@pytest.fixture()def test1():

? ? a ='leo'print('\n傳出a')

? ? return a

@pytest.fixture(scope='function')def test2():

? ? b ='男'print('\n傳出b')

? ? return bdef test3(test1):

? ? name ='leo'print('找到name')

? ? asserttest1 == namedef test4(test2):

? ? sex ='男'print('找到sex')

? ? asserttest2 == sexif__name__=='__main__':

? ? pytest.main('-q test_fixture.py')

輸出結(jié)果:

platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\exercise, inifile:collected 2 items

test_fixture.py

傳出a

.找到name

傳出b

.找到sex

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%]========================== 2 passedin0.04 seconds ===========================


放在類中實現(xiàn)結(jié)果也是一樣的

import pytest

@pytest.fixture()def test1():

? ? a ='leo'print('\n傳出a')

? ? return a

@pytest.fixture(scope='function')def test2():

? ? b ='男'print('\n傳出b')

? ? return bclass TestCase:

? ? def test3(self, test1):

? ? ? ? name ='leo'print('找到name')

? ? ? ? asserttest1 == name

? ? def test4(self, test2):

? ? ? ? sex ='男'print('找到sex')

? ? ? ? asserttest2 == sexif__name__=='__main__':

? ? pytest.main(['-s','test_fixture.py'])

輸出結(jié)果:

platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\exercise, inifile:collected 2 items

test_fixture.py

傳出a

.找到name

傳出b

.找到sex

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%]========================== 2 passedin0.03 seconds ===========================Process finished with exit code 0


scope="class"

fixture為class級別的時候侨颈,如果一個class里面有多個用例,都調(diào)用了次fixture芯义,那么此fixture只在此class里所有用例開始前執(zhí)行一次哈垢。

import pytest

@pytest.fixture(scope='class')def test1():

? ? b ='男'print('傳出了%s, 且只在class里所有用例開始前執(zhí)行一次!?覆Α耘分!'% b)

? ? return bclass TestCase:

? ? def test3(self, test1):

? ? ? ? name ='男'print('找到name')

? ? ? ? asserttest1 == name

? ? def test4(self, test1):

? ? ? ? sex ='男'print('找到sex')

? ? ? ? asserttest1 == sexif__name__=='__main__':

? ? pytest.main(['-s','test_fixture.py'])

輸出結(jié)果:

platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\exercise, inifile:collected 2 items

test_fixture.py 傳出了男, 且只在class里所有用例開始前執(zhí)行一次!0缶求泰!

.找到name

.找到sex

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%]========================== 2 passedin0.05 seconds ===========================Process finished with exit code 0


?scope="module"

fixture為module時,在當前.py腳本里面所有用例開始前只執(zhí)行一次计盒。


import pytest

##test_fixture.py

@pytest.fixture(scope='module')def test1():

? ? b ='男'print('傳出了%s, 且在當前py文件下執(zhí)行一次?势怠!北启!'% b)

? ? return bdef test3(test1):

? ? name ='男'print('找到name')

? ? asserttest1 == nameclass TestCase:

? ? def test4(self, test1):

? ? ? ? sex ='男'print('找到sex')

? ? ? ? asserttest1 == sexif__name__=='__main__':

? ? pytest.main(['-s','test_fixture.py'])

輸出結(jié)果:============================= test session starts =============================platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\exercise, inifile:collected 2 items

test_fixture.py 傳出了男, 且在當前py文件下執(zhí)行一次2防省0蔚凇!

.找到sex

.找到name

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%]========================== 2 passedin0.03 seconds ===========================Process finished with exit code 0



scope="session"


?fixture為session級別是可以跨.py模塊調(diào)用的聊替,也就是當我們有多個.py文件的用例的時候楼肪,如果多個用例只需調(diào)用一次fixture培廓,那就可以設(shè)置為scope="session"惹悄,并且寫到conftest.py文件里。

conftest.py文件名稱時固定的肩钠,pytest會自動識別該文件泣港。放到項目的根目錄下就可以全局調(diào)用了,如果放到某個package下价匠,那就在改package內(nèi)有效当纱。

文件目錄為


import pytest# conftest.py@pytest.fixture(scope='session')def test1():

? ? sex ='男'print('獲取到%s'% sex)

? ? returnsex

import pytest# test_fixture.pydef test3(test1):

? ? name ='男'print('找到name')

? ? asserttest1 == nameif__name__=='__main__':

? ? pytest.main(['-s','test_fixture.py'])

import pytest# test_fixture1.pyclass TestCase:

? ? def test4(self, test1):

? ? ? ? sex ='男'print('找到sex')

? ? ? ? asserttest1 == sexif__name__=='__main__':

? ? pytest.main(['-s','test_fixture1.py'])


如果需要同時執(zhí)行兩個py文件,可以在cmd中在文件py文件所在目錄下執(zhí)行命令:pytest -s test_fixture.py test_fixture1.py?

執(zhí)行結(jié)果為:

================================================= test session starts =================================================platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\exercise, inifile:

collected 2 items

test_fixture.py 獲取到男

找到name

.

test_fixture1.py 找到sex

.============================================== 2 passedin0.05 seconds ===============================================



調(diào)用fixture的三種方法


1.函數(shù)或類里面方法直接傳fixture的函數(shù)參數(shù)名稱

import pytest# test_fixture1.py@pytest.fixture()def test1():

? ? print('\n開始執(zhí)行function')def test_a(test1):

? ? print('---用例a執(zhí)行---')class TestCase:

? ? def test_b(self, test1):

? ? ? ? print('---用例b執(zhí)行')

輸出結(jié)果:

test_fixture1.py

開始執(zhí)行function

.---用例a執(zhí)行---開始執(zhí)行function

.---用例b執(zhí)行

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%]========================== 2 passedin0.05 seconds ===========================Process finished with exit code 0


2.使用裝飾器@pytest.mark.usefixtures()修飾需要運行的用例

import pytest# test_fixture1.py@pytest.fixture()def test1():

? ? print('\n開始執(zhí)行function')

@pytest.mark.usefixtures('test1')def test_a():

? ? print('---用例a執(zhí)行---')

@pytest.mark.usefixtures('test1')class TestCase:

? ? def test_b(self):

? ? ? ? print('---用例b執(zhí)行---')

? ? def test_c(self):

? ? ? ? print('---用例c執(zhí)行---')if__name__=='__main__':

? ? pytest.main(['-s','test_fixture1.py'])

輸出結(jié)果:

platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\exercise, inifile:collected 3 items

test_fixture1.py

開始執(zhí)行function

.---用例a執(zhí)行---開始執(zhí)行function

.---用例b執(zhí)行---開始執(zhí)行function

.---用例c執(zhí)行---? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%]========================== 3 passedin0.06 seconds ===========================Process finished with exit code 0


疊加usefixtures

如果一個方法或者一個class用例想要同時調(diào)用多個fixture踩窖,可以使用@pytest.mark.usefixture()進行疊加坡氯。注意疊加順序,先執(zhí)行的放底層洋腮,后執(zhí)行的放上層箫柳。

import pytest# test_fixture1.py@pytest.fixture()def test1():

? ? print('\n開始執(zhí)行function1')

@pytest.fixture()def test2():

? ? print('\n開始執(zhí)行function2')

@pytest.mark.usefixtures('test1')

@pytest.mark.usefixtures('test2')def test_a():

? ? print('---用例a執(zhí)行---')

@pytest.mark.usefixtures('test2')

@pytest.mark.usefixtures('test1')class TestCase:

? ? def test_b(self):

? ? ? ? print('---用例b執(zhí)行---')

? ? def test_c(self):

? ? ? ? print('---用例c執(zhí)行---')if__name__=='__main__':

? ? pytest.main(['-s','test_fixture1.py'])

輸出結(jié)果:============================= test session starts =============================platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\exercise, inifile:collected 3 items

test_fixture1.py

開始執(zhí)行function2

開始執(zhí)行function1

.---用例a執(zhí)行---開始執(zhí)行function1

開始執(zhí)行function2

.---用例b執(zhí)行---開始執(zhí)行function1

開始執(zhí)行function2

.---用例c執(zhí)行---? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%]========================== 3 passedin0.03 seconds ===========================Process finished with exit code 0


usefixtures與傳fixture區(qū)別

?如果fixture有返回值,那么usefixture就無法獲取到返回值啥供,這個是裝飾器usefixture與用例直接傳fixture參數(shù)的區(qū)別悯恍。

當fixture需要用到return出來的參數(shù)時,只能講參數(shù)名稱直接當參數(shù)傳入伙狐,不需要用到return出來的參數(shù)時涮毫,兩種方式都可以。



fixture自動使用autouse=True

當用例很多的時候贷屎,每次都傳這個參數(shù)罢防,會很麻煩。fixture里面有個參數(shù)autouse唉侄,默認是False沒開啟的咒吐,可以設(shè)置為True開啟自動使用fixture功能,這樣用例就不用每次都去傳參了

autouse設(shè)置為True美旧,自動調(diào)用fixture功能

import pytest# test_fixture1.py@pytest.fixture(scope='module', autouse=True)def test1():

? ? print('\n開始執(zhí)行module')

@pytest.fixture(scope='class', autouse=True)def test2():

? ? print('\n開始執(zhí)行class')

@pytest.fixture(scope='function', autouse=True)def test3():

? ? print('\n開始執(zhí)行function')def test_a():

? ? print('---用例a執(zhí)行---')def test_d():

? ? print('---用例d執(zhí)行---')class TestCase:

? ? def test_b(self):

? ? ? ? print('---用例b執(zhí)行---')

? ? def test_c(self):

? ? ? ? print('---用例c執(zhí)行---')if__name__=='__main__':

? ? pytest.main(['-s','test_fixture1.py'])

輸出結(jié)果:============================= test session starts =============================platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\exercise, inifile:collected 4 items

test_fixture1.py

開始執(zhí)行module

開始執(zhí)行class

開始執(zhí)行function

.---用例a執(zhí)行---開始執(zhí)行class

開始執(zhí)行function

.---用例d執(zhí)行---開始執(zhí)行class

開始執(zhí)行function

.---用例b執(zhí)行---開始執(zhí)行function

.---用例c執(zhí)行---? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%]


conftest.py的作用范圍

一個工程下可以建多個conftest.py的文件渤滞,一般在工程根目錄下設(shè)置的conftest文件起到全局作用。在不同子目錄下也可以放conftest.py的文件榴嗅,作用范圍只能在改層級以及以下目錄生效妄呕。

項目實例:

目錄結(jié)構(gòu):


?1.conftest在不同的層級間的作用域不一樣

# conftest層級展示/conftest.pyimport pytest

@pytest.fixture(scope='session', autouse=True)def login():

? ? print('----準備登錄----')# conftest層級展示/sougou_login/conftestimport pytest

@pytest.fixture(scope='session', autouse=True)def bai_du():

? ? print('-----登錄百度頁面-----')# conftest層級展示/sougou_login/login_websiteimport pytestclass TestCase:

? ? def test_login(self):

? ? ? ? print('hhh,成功登錄百度')if__name__=='__main__':

? ? pytest.main(['-s','login_website.py'])

輸出結(jié)果:============================= test session starts =============================platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\conftest層級演示\sougou_login, inifile:collected 1 item

login_website.py ----準備登錄---------登錄百度頁面-----.hhh嗽测,成功登錄百度

? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? [100%]========================== 1 passedin0.03 seconds ===========================Process finished with exit code 0


?2.conftest是不能跨模塊調(diào)用的(這里沒有使用模塊調(diào)用)

# conftest層級演示/log/contfest.pyimport pytest

@pytest.fixture(scope='function', autouse=True)def log_web():

? ? print('打印頁面日志成功')# conftest層級演示/log/log_website.pyimport pytestdef test_web():

? ? print('hhh,成功一次打印日志')def test_web1():

? ? print('hhh,成功兩次打印日志')if__name__=='__main__':

? ? pytest.main(['-s','log_website.py'])

輸出結(jié)果:============================= test session starts =============================platform win32 -- Python 3.7.0, pytest-4.0.2, py-1.7.0, pluggy-0.8.0

rootdir: C:\Program Files\PycharmProjects\conftest層級演示\log, inifile:

collected 2 items

log_website.py ----準備登錄----打印頁面日志成功

hhh,成功一次打印日志

.打印頁面日志成功

hhh,成功兩次打印日志

.========================== 2 passedin0.02 seconds ===========================

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末绪励,一起剝皮案震驚了整個濱河市肿孵,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌疏魏,老刑警劉巖停做,帶你破解...
    沈念sama閱讀 218,755評論 6 507
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異大莫,居然都是意外死亡蛉腌,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,305評論 3 395
  • 文/潘曉璐 我一進店門只厘,熙熙樓的掌柜王于貴愁眉苦臉地迎上來烙丛,“玉大人,你說我怎么就攤上這事羔味『友剩” “怎么了?”我有些...
    開封第一講書人閱讀 165,138評論 0 355
  • 文/不壞的土叔 我叫張陵赋元,是天一觀的道長忘蟹。 經(jīng)常有香客問我,道長搁凸,這世上最難降的妖魔是什么媚值? 我笑而不...
    開封第一講書人閱讀 58,791評論 1 295
  • 正文 為了忘掉前任,我火速辦了婚禮坪仇,結(jié)果婚禮上杂腰,老公的妹妹穿的比我還像新娘。我一直安慰自己椅文,他們只是感情好喂很,可當我...
    茶點故事閱讀 67,794評論 6 392
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著皆刺,像睡著了一般少辣。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上羡蛾,一...
    開封第一講書人閱讀 51,631評論 1 305
  • 那天漓帅,我揣著相機與錄音,去河邊找鬼痴怨。 笑死忙干,一個胖子當著我的面吹牛,可吹牛的內(nèi)容都是我干的浪藻。 我是一名探鬼主播捐迫,決...
    沈念sama閱讀 40,362評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼爱葵!你這毒婦竟也來了施戴?” 一聲冷哼從身側(cè)響起反浓,我...
    開封第一講書人閱讀 39,264評論 0 276
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎赞哗,沒想到半個月后雷则,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,724評論 1 315
  • 正文 獨居荒郊野嶺守林人離奇死亡肪笋,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,900評論 3 336
  • 正文 我和宋清朗相戀三年月劈,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片涂乌。...
    茶點故事閱讀 40,040評論 1 350
  • 序言:一個原本活蹦亂跳的男人離奇死亡艺栈,死狀恐怖英岭,靈堂內(nèi)的尸體忽然破棺而出湾盒,到底是詐尸還是另有隱情,我是刑警寧澤诅妹,帶...
    沈念sama閱讀 35,742評論 5 346
  • 正文 年R本政府宣布罚勾,位于F島的核電站,受9級特大地震影響吭狡,放射性物質(zhì)發(fā)生泄漏尖殃。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 41,364評論 3 330
  • 文/蒙蒙 一划煮、第九天 我趴在偏房一處隱蔽的房頂上張望送丰。 院中可真熱鬧,春花似錦弛秋、人聲如沸器躏。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,944評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽登失。三九已至,卻和暖如春挖炬,著一層夾襖步出監(jiān)牢的瞬間揽浙,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 33,060評論 1 270
  • 我被黑心中介騙來泰國打工意敛, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留馅巷,地道東北人。 一個月前我還...
    沈念sama閱讀 48,247評論 3 371
  • 正文 我出身青樓草姻,卻偏偏與公主長得像钓猬,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子碴倾,可洞房花燭夜當晚...
    茶點故事閱讀 44,979評論 2 355