Skip to content

Commit

Permalink
(#31)eden: tests: rename BaseBlock to Block
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayukhdeb committed Feb 5, 2022
1 parent 21cd810 commit e2c10ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions eden/tests/server.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from eden.block import BaseBlock
from eden.block import Block
from eden.datatypes import Image

from eden.hosting import host_block
Expand All @@ -7,7 +7,7 @@
## set this to true if you want to run tests on gpus
REQUIRES_GPU = False

eden_block = BaseBlock(name = 'eden_block')
eden_block = Block(name = 'eden_block')

my_args = {
'prompt': 'let there be tests', ## text
Expand Down
6 changes: 3 additions & 3 deletions eden/tests/test_block.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
from unittest import TestCase

from eden.block import BaseBlock
from eden.block import Block
from eden.datatypes import (
Image,
)
Expand All @@ -10,7 +10,7 @@ class TestBlock(unittest.TestCase):

def test_block_init(self):

eden_block = BaseBlock(progress= True, name = 'some_block_name')
eden_block = Block(progress= True, name = 'some_block_name')

self.assertTrue(eden_block.__run__ == None)
self.assertTrue(eden_block.__setup__ == None)
Expand All @@ -21,7 +21,7 @@ def test_block_init(self):

def test_block_build_pydantic_model(self):

eden_block = BaseBlock(progress= True, name = 'some_block_name')
eden_block = Block(progress= True, name = 'some_block_name')

my_args = {
'prompt': 'let there be light', ## text
Expand Down

0 comments on commit e2c10ea

Please sign in to comment.