import pytest

from core import hybra

class TestUM:

    def setup(self):

        hybra.set_data_path('./data2/')
        self.g = hybra.data( 'news', folder = '', terms = ['yle.json'] )

    def test_is_changed( self ):
        assert( hybra.data_path() == './data2/' )

import pytest

from core import hybra

class TestUM:

    def setup(self):

        hybra.set_data_path('./data_empty/')

    def test_is_changed( self ):
        assert( hybra.data_path() == './data_empty/' )

Remove data load from test
Remove data load from test

  import pytest
  
  from core import hybra
  
  class TestUM:
  
      def setup(self):
  
-         hybra.set_data_path('./data2/')
+         hybra.set_data_path('./data_empty/')
-         self.g = hybra.data( 'news', folder = '', terms = ['yle.json'] )
  
      def test_is_changed( self ):
-         assert( hybra.data_path() == './data2/' )
+         assert( hybra.data_path() == './data_empty/' )
  
Remove data load from test
## Code Before:
import pytest

from core import hybra

class TestUM:

    def setup(self):

        hybra.set_data_path('./data2/')
        self.g = hybra.data( 'news', folder = '', terms = ['yle.json'] )

    def test_is_changed( self ):
        assert( hybra.data_path() == './data2/' )

## Instruction:
Remove data load from test
## Code After:
import pytest

from core import hybra

class TestUM:

    def setup(self):

        hybra.set_data_path('./data_empty/')

    def test_is_changed( self ):
        assert( hybra.data_path() == './data_empty/' )
