-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from erlichsefi/DEV
- Loading branch information
Showing
13 changed files
with
150 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,150 +1,152 @@ | ||
# pylint: disable=missing-class-docstring,wildcard-import | ||
import pytest | ||
|
||
from il_supermarket_scarper.scrappers import * | ||
from il_supermarket_scarper.scrappers_factory import ScraperFactory | ||
from .test_cases import make_test_case | ||
|
||
|
||
@pytest.mark.run(order=1) | ||
class BareketTestCase(make_test_case(Bareket, 2)): | ||
class BareketTestCase(make_test_case(ScraperFactory.BAREKET, 2)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=2) | ||
class YaynotBitanTestCase(make_test_case(YaynotBitan, 6)): | ||
class YaynotBitanTestCase(make_test_case(ScraperFactory.YAYNO_BITAN, 6)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=3) | ||
class CofixTestCase(make_test_case(Cofix, 299)): | ||
class CofixTestCase(make_test_case(ScraperFactory.COFIX, 299)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=4) | ||
class DorAlonTestCase(make_test_case(DorAlon, 501)): | ||
class DorAlonTestCase(make_test_case(ScraperFactory.DOR_ALON, 501)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=5) | ||
class GoodPharmTestCase(make_test_case(GoodPharm, 952)): | ||
class GoodPharmTestCase(make_test_case(ScraperFactory.GOOD_PHARM, 952)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=6) | ||
class HaziHinamTestCase(make_test_case(HaziHinam, 2)): | ||
class HaziHinamTestCase(make_test_case(ScraperFactory.HAZI_HINAM, 2)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=7) | ||
class KeshetTestCase(make_test_case(Keshet, 5)): | ||
class KeshetTestCase(make_test_case(ScraperFactory.KESHET, 5)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=8) | ||
class KingStoreTestCase(make_test_case(KingStore, 334)): | ||
class KingStoreTestCase(make_test_case(ScraperFactory.KING_STORE, 334)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=9) | ||
class Maayan2000TestCase(make_test_case(Maayan2000, 60)): | ||
class Maayan2000TestCase(make_test_case(ScraperFactory.MAAYAN_2000, 60)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=10) | ||
class MahsaniAShukTestCase(make_test_case(MahsaniAShuk, 98)): | ||
class MahsaniAShukTestCase(make_test_case(ScraperFactory.MAHSANI_ASHUK, 98)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=11) | ||
class MegaMarketTestCase(make_test_case(MegaMarket, 2150)): | ||
class MegaMarketTestCase(make_test_case(ScraperFactory.MEGA_MARKET, 2150)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=12) | ||
class MegaTestCase(make_test_case(Mega, 37)): | ||
class MegaTestCase(make_test_case(ScraperFactory.MEGA, 37)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=13) | ||
class NetivHasefTestCase(make_test_case(NetivHasef, 1)): | ||
class NetivHasefTestCase(make_test_case(ScraperFactory.NETIV_HASED, 1)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=14) | ||
class OsheradTestCase(make_test_case(Osherad, 1)): | ||
class OsheradTestCase(make_test_case(ScraperFactory.OSHER_AD, 1)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=15) | ||
class PolizerTestCase(make_test_case(Polizer, 1)): | ||
class PolizerTestCase(make_test_case(ScraperFactory.POLIZER, 1)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=16) | ||
class RamiLevyTestCase(make_test_case(RamiLevy, 1)): | ||
class RamiLevyTestCase(make_test_case(ScraperFactory.RAMI_LEVY, 1)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=17) | ||
class SalachDabachTestCase(make_test_case(SalachDabach, 4)): | ||
class SalachDabachTestCase(make_test_case(ScraperFactory.SALACH_DABACH, 4)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=18) | ||
class ShefaBarcartAshemTestCase(make_test_case(ShefaBarcartAshem, 41)): | ||
class ShefaBarcartAshemTestCase(make_test_case(ScraperFactory.SHEFA_BARCART_ASHEM, 41)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=19) | ||
class ShufersalTestCase(make_test_case(Shufersal, 176)): | ||
class ShufersalTestCase(make_test_case(ScraperFactory.SHUFERSAL, 176)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=20) | ||
class ShukAhirTestCase(make_test_case(ShukAhir, 4)): | ||
class ShukAhirTestCase(make_test_case(ScraperFactory.SHUK_AHIR, 4)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=21) | ||
class StopMarketTestCase(make_test_case(StopMarket, 5)): | ||
class StopMarketTestCase(make_test_case(ScraperFactory.STOP_MARKET, 5)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=22) | ||
class SuperPharmTestCase(make_test_case(SuperPharm, 224)): | ||
class SuperPharmTestCase(make_test_case(ScraperFactory.SUPER_PHARM, 224)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=23) | ||
class SuperYudaTestCase(make_test_case(SuperYuda, 40)): | ||
class SuperYudaTestCase(make_test_case(ScraperFactory.SUPER_YUDA, 40)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=24) | ||
class FreshMarketAndSuperDoshTestCase(make_test_case(FreshMarketAndSuperDosh, 1)): | ||
class FreshMarketAndSuperDoshTestCase( | ||
make_test_case(ScraperFactory.FRESH_MARKET_AND_SUPER_DOSH, 1) | ||
): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=25) | ||
class TivTaamTestCase(make_test_case(TivTaam, 2)): | ||
class TivTaamTestCase(make_test_case(ScraperFactory.TIV_TAAM, 2)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=26) | ||
class VictoryTestCase(make_test_case(Victory, 1)): | ||
class VictoryTestCase(make_test_case(ScraperFactory.VICTORY, 1)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=27) | ||
class YellowTestCase(make_test_case(Yellow, 100)): | ||
class YellowTestCase(make_test_case(ScraperFactory.YELLOW, 100)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=28) | ||
class YohananofTestCase(make_test_case(Yohananof, 1)): | ||
class YohananofTestCase(make_test_case(ScraperFactory.YOHANANOF, 1)): | ||
pass | ||
|
||
|
||
@pytest.mark.run(order=29) | ||
class ZolVeBegadolTestCase(make_test_case(ZolVeBegadol, 4)): | ||
class ZolVeBegadolTestCase(make_test_case(ScraperFactory.ZOL_VEBEGADOL, 4)): | ||
pass |
Oops, something went wrong.