Esempio n. 1
0
    def setUp(self):
        def noop():
            return None

        mock_conf_settings(self)
        util.resetTime(self)
        self.test_daemon = get_test_daemon()
        self.test_daemon.wallet.is_first_run = False
        self.test_daemon.wallet.get_best_blockhash = noop
Esempio n. 2
0
    def setUp(self):
        def noop():
            return None

        mock_conf_settings(self)
        util.resetTime(self)
        self.test_daemon = get_test_daemon()
        self.test_daemon.session.wallet = Wallet.LBRYumWallet(storage=Wallet.InMemoryStorage())
        self.test_daemon.session.wallet.network = FakeNetwork()
        self.test_daemon.session.wallet.get_best_blockhash = noop
Esempio n. 3
0
    def setUp(self):
        mock_conf_settings(self)
        util.resetTime(self)
        self.faker = Faker('en_US')
        self.faker.seed(129)  # contains 3 same points paid (5.9)
        self.test_daemon = get_test_daemon()
        self.test_daemon.file_manager.lbry_files = self._get_fake_lbry_files()

        self.test_points_paid = [
            2.5, 4.8, 5.9, 5.9, 5.9, 6.1, 7.1, 8.2, 8.4, 9.1
        ]
        self.test_file_names = [
            'add.mp3', 'any.mov', 'day.tiff', 'decade.odt', 'different.json', 'hotel.bmp',
            'might.bmp', 'physical.json', 'remember.mp3', 'than.ppt'
        ]
        self.test_authors = [
            'ashlee27', 'bfrederick', 'brittanyhicks', 'davidsonjeffrey', 'heidiherring',
            'jlewis', 'kswanson', 'michelle50', 'richard64', 'xsteele'
        ]
        return self.test_daemon.component_manager.setup()
Esempio n. 4
0
 def setUp(self):
     util.resetTime(self)
Esempio n. 5
0
 def setUp(self):
     mock_conf_settings(self)
     util.resetTime(self)
Esempio n. 6
0
 def setUp(self):
     util.resetTime(self)
Esempio n. 7
0
 def setUp(self):
     mock_conf_settings(self)
     util.resetTime(self)
     self.test_daemon = get_test_daemon()
     self.test_daemon.session.wallet = Wallet.LBRYumWallet(
         storage=Wallet.InMemoryStorage())
Esempio n. 8
0
 def setUp(self):
     util.resetTime(self)
     self.event_generator = events.Events('any valid json datatype', 'lbry123', 'session456')
Esempio n. 9
0
 def setUp(self):
     mock_conf_settings(self)
     util.resetTime(self)
Esempio n. 10
0
 def setUp(self):
     mock_conf_settings(self)
     util.resetTime(self)
     self.test_daemon = get_test_daemon()
     self.test_daemon.session.wallet = Wallet.LBRYumWallet(storage=Wallet.InMemoryStorage())